Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Conversation

@maciejwalkowiak
Copy link
Contributor

Fixes #254.

@vercel
Copy link

vercel bot commented May 19, 2021

@maciejwalkowiak is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@maciejwalkowiak
Copy link
Contributor Author

cc @marandaneto @bruno-garcia

@marandaneto
Copy link
Contributor

cc @PeloWriter for some reason can't add you as a reviewer

@PeloWriter
Copy link
Contributor

I'm not a reviewer on the developer site, but happy to add comments if you ping me (as you did for this).


- HTTP request must be enhanced with a [`sentry-trace` HTTP header](/sdk/performance/#header-sentry-trace)
- span status must match HTTP response status code ([see Span status to HTTP status code mapping](/sdk/event-payloads/span/))
- when network error occurs, span status must be set to `INTERNAL_SERVER_ERROR`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is meant by "network error" here? There are many things that can happen like failed to resolve DNS, timeout, etc.

Note that INTERNAL_SERVER_ERROR is not a valid status (internal_error is).

Lacking more context, I guess unknown_error is more appropriate as a generic catch-all status, but I look forward to us simplifying the statuses in the near future, the current list is confusing and not well fitting the product.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhcarvalho about the unknown_error , See -> #307 (comment)
we've changed it because the description of unknown_error is actually:

An unknown error raised by APIs that don't return enough error information

and in our case, network error is eg you've no connection, something happened that you could not really talk with the endpoint, that's why internal rather unknown.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that status are a bit confusing, but that's what we've right now, we can revisit this in the future

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Reusing internal_error unfortunately confuses with a 500 response.

Copy link
Contributor

@marandaneto marandaneto May 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, but unknown_error is also 500 anyway, so it's not any better IMO, at least internal_error fits better when you read the desc. under https://develop.sentry.dev/sdk/event-payloads/span/ status section

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be sure we understand the same, while the status values (first column, States) is sort of fixed (known by Relay), the Description and HTTP status code equivalent are under our control; it is whatever we want to document and it is relatively easy to change. AFAIK nothing in the product depends on those descriptions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, but right now that's how its implemented in some of the SDKs (using inetrnal_error) and its the one that fits the most in the description https://develop.sentry.dev/sdk/event-payloads/transaction/
so unless we fix the SDKs and the status descriptions, let's keep it like this, I'll merge as it is.

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lgtm but I believe we should circle other folks for thoughts before merging.

@jan-auer @HazAT @rhcarvalho @kamilogorek @Swatinem

@vercel
Copy link

vercel bot commented Jun 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sentry/develop/3EmqYRmvNBn2Z3tvP7EFPZhkfZrm
✅ Preview: https://develop-git-fork-maciejwalkowiak-gh-254.sentry.dev

@marandaneto marandaneto merged commit a140655 into getsentry:master Jun 24, 2021
rhcarvalho added a commit to getsentry/sentry-javascript that referenced this pull request Jul 20, 2021
We've established that incoming requests have op=http.server and
outgoing requests have op=http.client.

Specification available at: https://develop.sentry.dev/sdk/features/#http-client-integrations
Last update: getsentry/develop#341
rhcarvalho added a commit to getsentry/sentry-javascript that referenced this pull request Jul 20, 2021
We've established that incoming requests have op=http.server and
outgoing requests have op=http.client.

Specification available at: https://develop.sentry.dev/sdk/features/#http-client-integrations
Last update: getsentry/develop#341
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document in SDK Expected Features the HTTP integrations

5 participants