Skip to content

Dynamic (Resource) ServiceName #5691

Answered by cijothomas
jonnepmyra asked this question in Q&A
Discussion options

You must be logged in to vote

Not possible. Resource is immutable and once provider is built, you cannot change Resource.
There is some work in OTel spec about a new concept of "Entities", which, when landed, might be what you need..... Sorry I don't have a better solution.

(Of course you can store service name as an attribute in Activity itself, instead of relying on Resource as a very hacky workaround)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jonnepmyra
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