Skip to content

Add custom span destination name formatter#1201

Merged
mtmk merged 2 commits into
nats-io:release/3.0from
colprog:release/3.0
Jun 30, 2026
Merged

Add custom span destination name formatter#1201
mtmk merged 2 commits into
nats-io:release/3.0from
colprog:release/3.0

Conversation

@colprog

@colprog colprog commented Jun 27, 2026

Copy link
Copy Markdown
Contributor
  • Add NatsInstrumentationOptions.SpanDestinationNameFormatter to let users customize the destination portion of NATS activity names.
  • Keep inbox span names collapsed to inbox before applying the custom formatter to avoid high-cardinality _INBOX... names.
  • Optimize the default SpanDestinationName path to use span-based token scanning instead of string.Split.

@mtmk

mtmk commented Jun 27, 2026

Copy link
Copy Markdown
Member

thanks @colprog looks good. could you please sign your commits. i can merge once signed.

Signed-off-by: Zhen Wu <colprog@gmail.com>
Signed-off-by: Zhen Wu <colprog@gmail.com>
@colprog

colprog commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Signed and force pushed. Test failures seems unrelated.

@mtmk mtmk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM thanks @colprog

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