You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's quite often the case that it's desirable to add additional attributes across all metrics that are produced / exported from your services, and to include certain attributes that for example are defined in ``
For example, you may want to include deployment.environment.name or process.pid (which will be made available as a resource attribute automatically by @opentelemetry/sdk-node.
It's important though that all these additional attributes remain static during a process's lifetime.
An approach that we've ended up taking is to require any additional attributes we want to use be defined as resource attributes, and then allow for specifying which resource attributes you'd like to be included as attributes for all exported metrics. This approach should be relatively stable and work across all exporters:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It's quite often the case that it's desirable to add additional attributes across all metrics that are produced / exported from your services, and to include certain attributes that for example are defined in ``
See:
For example, you may want to include
deployment.environment.name
orprocess.pid
(which will be made available as a resource attribute automatically by@opentelemetry/sdk-node
.It's important though that all these additional attributes remain static during a process's lifetime.
An approach that we've ended up taking is to require any additional attributes we want to use be defined as resource attributes, and then allow for specifying which resource attributes you'd like to be included as attributes for all exported metrics. This approach should be relatively stable and work across all exporters:
Beta Was this translation helpful? Give feedback.
All reactions