File tree Expand file tree Collapse file tree 2 files changed +23
-29
lines changed
exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc Expand file tree Collapse file tree 2 files changed +23
-29
lines changed Original file line number Diff line number Diff line change @@ -90,22 +90,18 @@ def __init__(
90
90
if compression is None
91
91
else compression
92
92
)
93
- endpoint = endpoint or environ .get (OTEL_EXPORTER_OTLP_LOGS_ENDPOINT )
94
93
95
- headers = headers or environ .get (OTEL_EXPORTER_OTLP_LOGS_HEADERS )
96
-
97
- super ().__init__ (
98
- ** {
99
- "endpoint" : endpoint ,
100
- "insecure" : insecure ,
101
- "credentials" : credentials ,
102
- "headers" : headers ,
103
- "timeout" : timeout or environ_timeout ,
104
- "compression" : compression ,
105
- "stub" : LogsServiceStub ,
106
- "result" : LogExportResult ,
107
- "channel_options" : channel_options ,
108
- }
94
+ OTLPExporterMixin .__init__ (
95
+ self ,
96
+ endpoint = endpoint or environ .get (OTEL_EXPORTER_OTLP_LOGS_ENDPOINT ),
97
+ insecure = insecure ,
98
+ credentials = credentials ,
99
+ headers = headers or environ .get (OTEL_EXPORTER_OTLP_LOGS_HEADERS ),
100
+ timeout = timeout ,
101
+ compression = compression ,
102
+ stub = LogsServiceStub ,
103
+ result = LogExportResult ,
104
+ channel_options = channel_options ,
109
105
)
110
106
111
107
def _translate_data (
Original file line number Diff line number Diff line change @@ -123,20 +123,18 @@ def __init__(
123
123
else compression
124
124
)
125
125
126
- super ().__init__ (
127
- ** {
128
- "stub" : TraceServiceStub ,
129
- "result" : SpanExportResult ,
130
- "endpoint" : endpoint
131
- or environ .get (OTEL_EXPORTER_OTLP_TRACES_ENDPOINT ),
132
- "insecure" : insecure ,
133
- "credentials" : credentials ,
134
- "headers" : headers
135
- or environ .get (OTEL_EXPORTER_OTLP_TRACES_HEADERS ),
136
- "timeout" : timeout or environ_timeout ,
137
- "compression" : compression ,
138
- "channel_options" : channel_options ,
139
- }
126
+ OTLPExporterMixin .__init__ (
127
+ self ,
128
+ stub = TraceServiceStub ,
129
+ result = SpanExportResult ,
130
+ endpoint = endpoint
131
+ or environ .get (OTEL_EXPORTER_OTLP_TRACES_ENDPOINT ),
132
+ insecure = insecure ,
133
+ credentials = credentials ,
134
+ headers = headers or environ .get (OTEL_EXPORTER_OTLP_TRACES_HEADERS ),
135
+ timeout = timeout or environ_timeout ,
136
+ compression = compression ,
137
+ channel_options = channel_options ,
140
138
)
141
139
142
140
def _translate_data (
You can’t perform that action at this time.
0 commit comments