Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Azure Monitor exporter does not set resultCode or success if there is no http.status_code attribute #831

@lmolkova

Description

@lmolkova

Steps to reproduce.
create span with non-success status and export to azure monitor.

What is the expected behavior?
RequestTelemetry or DepednendcyTelemetry success and resultCode are populated according to the status

What is the actual behavior?
Requests are always failed, dependencies are always successful

Additional context.

If there is no http.status_code or another recognizable status in attributes, the exporter should use Status.
Use Status.CanonicalCode for resultCode. Success = CanonicalCode == OK (or status.IsOk)

Exactly the same issue for OpenTelemetry: microsoft/opentelemetry-azure-monitor-python#21

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions