Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(trace): align span status per OpenTelemetry specs #54

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

thevilledev
Copy link
Contributor

What problem are we solving?

Previously, any non-200 HTTP response would set the span status to error in hyper_wrapper.rs. According to OpenTelemetry specs, this should only happen on client errors (4xx) and server errors (5xx).

How are we solving the problem?

Aligning the implementation to match OpenTelemetry spec: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status

Checks

Please check these off before promoting the pull request to non-draft status.

  • All CI checks are green.
  • I have reviewed the proposed changes myself.

Update HTTP client span annotation to mark both client (4xx)
and server (5xx) errors while preserving unset status for
1xx/2xx/3xx responses. Aligns with OpenTelemetry HTTP semantic
conventions for client instrumentation.

Ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status

Signed-off-by: Ville Vesilehto <[email protected]>
Copy link

github-actions bot commented Feb 8, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@thevilledev
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@kushudai kushudai left a comment

Choose a reason for hiding this comment

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

Thanks @thevilledev !

@kushudai kushudai merged commit a9592b1 into Roblox:main Feb 9, 2025
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2025
@thevilledev thevilledev deleted the fix/span-status branch February 9, 2025 18:43
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.

2 participants