Skip to content

Conversation

@ssncferreira
Copy link
Contributor

@ssncferreira ssncferreira commented Jan 21, 2026

Description

Fixes a nil pointer dereference when extracting Actor ID for trace attributes.

Discovered while testing the Copilot provider implementation (implemented upstack #137), where requests may not always have an actor set in the context.

Changes

Adds ActorIDFromContext helper that safely returns an empty string if no actor is present, and updates the interceptors to use it.

Copy link
Contributor Author

ssncferreira commented Jan 21, 2026

Copy link
Contributor

@pawbana pawbana left a comment

Choose a reason for hiding this comment

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

LGTM, it would be nice to have a simple test that would test nil actor in context scenario.

@ssncferreira ssncferreira force-pushed the ssncferreira/fix-actor-nil branch from b99f59b to 7bd40c9 Compare January 22, 2026 10:47
@ssncferreira ssncferreira force-pushed the ssncferreira/fix-actor-nil branch from 9182ea4 to 6a9968e Compare January 23, 2026 15:51
@ssncferreira
Copy link
Contributor Author

LGTM, it would be nice to have a simple test that would test nil actor in context scenario.

Good point, addressed in 6a9968e

Copy link
Contributor Author

ssncferreira commented Jan 23, 2026

Merge activity

  • Jan 23, 3:54 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 23, 3:55 PM UTC: Graphite couldn't merge this PR because it failed for an unknown reason (Merge commits are not allowed on this repository).
  • Jan 23, 3:59 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jan 23, 3:59 PM UTC: @ssncferreira merged this pull request with Graphite.

@ssncferreira ssncferreira merged commit a127009 into main Jan 23, 2026
2 checks passed
@ssncferreira ssncferreira deleted the ssncferreira/fix-actor-nil branch January 23, 2026 16:01
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.

2 participants