Skip to content

Commit

Permalink
STAC-0: let otel framework know topology exporter mutates data
Browse files Browse the repository at this point in the history
  • Loading branch information
fvlankvelt committed Dec 2, 2024
1 parent 236e619 commit c71b4f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exporter/ststopologyexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ import (

"github.com/stackvista/sts-opentelemetry-collector/exporter/ststopologyexporter/internal/metadata"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exporterhelper"
)

var processorCapabilities = consumer.Capabilities{MutatesData: true}

func NewFactory() exporter.Factory {
return exporter.NewFactory(
metadata.Type,
Expand Down Expand Up @@ -47,6 +50,7 @@ func createMetricsExporter(ctx context.Context, settings exporter.CreateSettings
exp.ConsumeMetrics,
exporterhelper.WithTimeout(c.TimeoutSettings),
exporterhelper.WithQueue(c.QueueSettings),
exporterhelper.WithCapabilities(processorCapabilities),
)
}

Expand All @@ -70,5 +74,6 @@ func createTracesExporter(
exporter.ConsumeTraces,
exporterhelper.WithTimeout(c.TimeoutSettings),
exporterhelper.WithQueue(c.QueueSettings),
exporterhelper.WithCapabilities(processorCapabilities),
)
}

0 comments on commit c71b4f8

Please sign in to comment.