Skip to content

How to remove/rename span attributes? #1335

Answered by arielvalentin
kroehre asked this question in Q&A
Discussion options

You must be logged in to vote

The best place to do this is in the OTel Collector and likely using an attribute processor1, however if you are not using a collector you can try to write some custom code for the client SDK. Span attribute processing is not a feature of the client SDK specification so it isn't something we currently support. That may change in the future with the introduction of schema upgrades/transformation.

Some teams workaround that by injecting a custom span processor and edits the read/write span2, however you must insert your custom processor before you export the spans.

Another option here would be to for you to submit a PR that updates the GraphQL instrumentation with the latest SemConv attribut…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kroehre
Comment options

Answer selected by fbogsany
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants