Skip to content

azuremonitorexporter flushes on each first Span #37214

@an-mmx

Description

@an-mmx

Component(s)

exporter/azuremonitor

What happened?

Description

AzureMonitorExporter calls Flush on each Span.
It is caused by this commit. It seems that Flush must be called after all Spans collected into batches, outside the Resourse/ Scope/ Spans loop.

Steps to Reproduce

To have constant Spans flow into OTEL Collector with AzureMonitorExporter enabled.

Expected Result

AzureMonitorExporter collects Spans in batches and calls Flush.

Actual Result

AzureMonitorExporter calls Flush on each Span.

Collector version

v0.116.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions