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

Set OTEL_STATUS_CODE for connector spans #6133

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

pubmodmatt
Copy link

@pubmodmatt pubmodmatt commented Oct 9, 2024

Set the otel.status_code for connector spans to ERROR if any of the HTTP requests fail. This enables visualizing errors in traces.

Screenshot 2024-10-11 at 5 12 33 PM

Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Tests added and passing3
    • Unit Tests
    • Integration Tests
    • Manual Tests

Exceptions

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

@pubmodmatt pubmodmatt self-assigned this Oct 9, 2024
@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Oct 9, 2024

✅ Docs Preview Ready

No new or changed pages found.

@pubmodmatt pubmodmatt force-pushed the pubmodmatt/connectors/span_status_code branch from 3138f9b to e2501f2 Compare October 9, 2024 17:16
@pubmodmatt pubmodmatt force-pushed the pubmodmatt/connectors/span_status_code branch from e2501f2 to e4ccf00 Compare October 9, 2024 21:38
@pubmodmatt pubmodmatt changed the title Set OTEL_STATUS_CODE for connector and HTTP client spans Set OTEL_STATUS_CODE for connector spans Oct 11, 2024
@pubmodmatt pubmodmatt marked this pull request as ready for review October 11, 2024 23:29
@pubmodmatt pubmodmatt requested review from nicholascioli and a team as code owners October 11, 2024 23:29
@pubmodmatt pubmodmatt merged commit 408ac64 into next Oct 15, 2024
11 of 12 checks passed
@pubmodmatt pubmodmatt deleted the pubmodmatt/connectors/span_status_code branch October 15, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants