Skip to content

Commit

Permalink
fix: set gzip for serverless logs (#34444)
Browse files Browse the repository at this point in the history
Co-authored-by: tobz <[email protected]>
  • Loading branch information
astuyve and tobz authored Feb 25, 2025
1 parent 4eb26be commit e1841bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/aggregator/demultiplexer_serverless.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ func InitAndStartServerlessDemultiplexer(keysPerDomain map[string][]string, forw
logger := logimpl.NewTemporaryLoggerWithoutInit()
forwarder := forwarder.NewSyncForwarder(pkgconfigsetup.Datadog(), logger, keysPerDomain, forwarderTimeout)
h, _ := hostname.Get(context.Background())
serializer := serializer.NewSerializer(forwarder, nil, selector.FromConfig(pkgconfigsetup.Datadog()), pkgconfigsetup.Datadog(), logger, h)
config := pkgconfigsetup.Datadog()
config.SetWithoutSource("serializer_compressor_kind", "gzip")
serializer := serializer.NewSerializer(forwarder, nil, selector.FromConfig(config), pkgconfigsetup.Datadog(), logger, h)
metricSamplePool := metrics.NewMetricSamplePool(MetricSamplePoolBatchSize, utils.IsTelemetryEnabled(pkgconfigsetup.Datadog()))
tagsStore := tags.NewStore(pkgconfigsetup.Datadog().GetBool("aggregator_use_tags_store"), "timesampler")

Expand Down

0 comments on commit e1841bc

Please sign in to comment.