Skip to content

Commit

Permalink
Change the default config for the otlphttpexporter to use TypeWithLev…
Browse files Browse the repository at this point in the history
…el for compression
  • Loading branch information
rnishtala-sumo committed Oct 16, 2024
1 parent c7f36ad commit ebb77fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporter/otlphttpexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package otlphttpexporter // import "go.opentelemetry.io/collector/exporter/otlphttpexporter"

import (
"compress/gzip"
"context"
"fmt"
"net/url"
Expand Down Expand Up @@ -35,7 +36,7 @@ func createDefaultConfig() component.Config {
clientConfig := confighttp.NewDefaultClientConfig()
clientConfig.Timeout = 30 * time.Second
// Default to gzip compression
clientConfig.Compression = configcompression.TypeGzip
clientConfig.Compression = configcompression.TypeWithLevel{Type: configcompression.TypeGzip, Level: gzip.DefaultCompression}
// We almost read 0 bytes, so no need to tune ReadBufferSize.
clientConfig.WriteBufferSize = 512 * 1024

Expand Down

0 comments on commit ebb77fa

Please sign in to comment.