Skip to content

Is it possible to create default set of attributes for each trace/metrics not from env? #2211

Answered by Aneurysm9
maxifom asked this question in Q&A
Discussion options

You must be logged in to vote

These can be done by constructing a *resource.Resource with the desired attributes and using it to construct a TracerProvider using the WithResource option.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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

This discussion was converted from issue #2208 on August 30, 2021 14:48.