Skip to content

Commit 55819b9

Browse files
committed
adding otlptracegrpc.WithCompressor(gzip),
1 parent 6568278 commit 55819b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/loop/telem.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import (
2727
loopnet "github.com/smartcontractkit/chainlink-common/pkg/loop/internal/net"
2828
)
2929

30+
const DefaultCompressionType = "gzip"
31+
3032
type GRPCOpts = loopnet.GRPCOpts
3133

3234
type OtelAttributes = beholder.OtelAttributes
@@ -149,7 +151,7 @@ func (config TracingConfig) NewSpanExporter() (sdktrace.SpanExporter, error) {
149151
traceExporter, err := otlptracegrpc.New(ctx,
150152
otlptracegrpc.WithGRPCConn(conn),
151153
otlptracegrpc.WithHeaders(config.AuthHeaders),
152-
otlptracegrpc.WithCompressor("gzip"),
154+
otlptracegrpc.WithCompressor(DefaultCompressionType),
153155
)
154156
if err != nil {
155157
return nil, err

0 commit comments

Comments
 (0)