Skip to content

feat: add trace methods to public API - #1394

Open
giortzisg wants to merge 1 commit into
scopes/context-tracingfrom
scopes/integration-primitives
Open

feat: add trace methods to public API#1394
giortzisg wants to merge 1 commit into
scopes/context-tracingfrom
scopes/integration-primitives

Conversation

@giortzisg

Copy link
Copy Markdown
Contributor

Description

Issues

Changelog Entry Instructions

To add a custom changelog entry, uncomment the section above. Supports:

  • Single entry: just write text
  • Multiple entries: use bullet points
  • Nested bullets: indent 4+ spaces

For more details: custom changelog entries

Reminders

This adds trace, logging and metrics primitives so that integrations can
be cleanly migrated to scopes and context.
@giortzisg
giortzisg force-pushed the scopes/integration-primitives branch from 4d788fd to deeab0c Compare August 24, 2026 10:53
@giortzisg
giortzisg marked this pull request as ready for review August 24, 2026 13:24

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit deeab0c. Configure here.

Comment thread scope.go
return hub
}
}
return nil

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Span trace dropped without scope

High Severity

resolveTrace finds a span on the supplied context, then returns immediately when scope is nil without applying that span’s trace IDs. Logs and metrics now resolve scope via ScopeFromContext, which can be nil even when WithCtx carries an active span, so those signals lose TraceID/SpanID correlation.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit deeab0c. Configure here.

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.

1 participant