Skip to content

[observability] Supporting different OTel temporality #3256

@dprotaso

Description

@dprotaso

A user reported that metrics couldn't be uploaded to their backend provider. (knative/eventing#8668)

It was discovered that their metrics backend (Dynatrace) only accepts metrics using a delta temporality (knative/eventing#8668 (comment))

There is an env var that will let you change the temporality OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta but in the otel-go sdk this only happens for certain instruments.

Looking at backend documentation it seems inconsistent which instruments should be

Datadog documentation shows several instruments should be using delta but this list differs from the otel-go sdk (datadog includes Gauges). Dynatrace expects all instruments to use delta.

So there is this massive inconsistency occurring that I brought up in slack looking for answers.

I originally made a PR (#3246) to make temporality a config map option but I'm not confident this will work with different backends.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions