Skip to content

Commit

Permalink
[pkg/otlp] Make hostname logic consistent with exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-psi authored Oct 27, 2022
1 parent a49d2d1 commit eb13ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/otlp/internal/serializerexporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func translatorFromConfig(logger *zap.Logger, cfg *exporterConfig) (*translator.

options := []translator.Option{
translator.WithFallbackSourceProvider(sourceProviderFunc(hostname.Get)),
translator.WithPreviewHostnameFromAttributes(),
translator.WithHistogramMode(histogramMode),
translator.WithDeltaTTL(cfg.Metrics.DeltaTTL),
}
Expand Down

0 comments on commit eb13ba5

Please sign in to comment.