Skip to content

Error when using OTLP to export a SumObserver #1424

Closed
@codeboten

Description

@codeboten

Describe your environment
Python 3.8.1
opentelemetry-exporter-otlp 0.16b0
opentelemetry-sdk 0.16b0
opentelemetry-instrumentation-system-metrics 0.16b0

Steps to reproduce
Tried to use the latest version of system-metrics instrumentation

What is the expected behavior?
Metrics to be exported as with v0.15b0

What is the actual behavior?

    export_record.instrument.meter.instrumentation_info.name
AttributeError: 'SumObserver' object has no attribute 'meter'

Additional context
The problem appears to be that Observers don't have a meter associated with them, which causes this change to trigger this error

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:p0Issues which require immediate action to stop bleedingrelease:required-for-gaTo be resolved before GA release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions