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
I was reflecting on how we handle Resources in the metrics pipelines and we haven't added support in the exporters yet. I noticed that we support resources on a per-instrument basis or fall-back to the SDK's resources. I wonder if this is "off spec"? I would note that Prometheus supports "constant labels" which is roughly the same, so maybe it's fine.
The question came about because I'm trying to figure out how to cache the encoding of a resource value in an exporter.
The text was updated successfully, but these errors were encountered:
One of the glaring points is that the api/metric package is importing the sdk/resource package. The API shouldn't have this dependency, so either we move Resource into the API or remove per-instrument resources. I think the spec would say we shouldn't have resources in the API.
I was reflecting on how we handle Resources in the metrics pipelines and we haven't added support in the exporters yet. I noticed that we support resources on a per-instrument basis or fall-back to the SDK's resources. I wonder if this is "off spec"? I would note that Prometheus supports "constant labels" which is roughly the same, so maybe it's fine.
The question came about because I'm trying to figure out how to cache the encoding of a resource value in an exporter.
The text was updated successfully, but these errors were encountered: