File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
exporter/opentelemetry-exporter-otlp/src/opentelemetry/exporter/otlp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 47
47
48
48
49
49
class GRPCCompression (enum .Enum ):
50
- DEFAULT = 0
50
+ NO_COMPRESSION = 0
51
51
GZIP = 1
52
52
53
53
@@ -138,14 +138,14 @@ def __init__(
138
138
endpoint : str = "localhost:55680" ,
139
139
credentials : ChannelCredentials = None ,
140
140
metadata : Optional [Tuple [Any ]] = None ,
141
- compression : enum . Enum = GRPCCompression .DEFAULT ,
141
+ compression : GRPCCompression = GRPCCompression .NO_COMPRESSION ,
142
142
):
143
143
super ().__init__ ()
144
144
145
145
self ._metadata = metadata
146
146
self ._collector_span_kwargs = None
147
147
148
- if compression is GRPCCompression .DEFAULT :
148
+ if compression is GRPCCompression .NO_COMPRESSION :
149
149
compression_algorithm = Compression .NoCompression
150
150
elif compression is GRPCCompression .GZIP :
151
151
compression_algorithm = Compression .Gzip
You can’t perform that action at this time.
0 commit comments