How do I update the resource attributes? #3441
-
I would like to update resource attributes while the python application is running, like id, transaction count, for example. I able to add default attributes but I could not find a way to change the transactionCount.
I was going through the documentation or examples code api but I could not find any solution. Could you guys help me with some example code or documentation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There currently is no way to modify the |
Beta Was this translation helpful? Give feedback.
There currently is no way to modify the
Resource
during runtime, as they are immutable as defined by the spec. You are better off modifying span/metric/log attributes instead if you are keeping track of something like transaction count.