You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add timeouts to metric SDK
* comments
* don't use TimeoutError as it is intended for OS related timeouts
* changelog and typo
* isort
* fix _time_ns import
* Update CHANGELOG.md
Co-authored-by: Srikanth Chekuri <[email protected]>
* use self.fail in tests
Co-authored-by: Srikanth Chekuri <[email protected]>
Copy file name to clipboardExpand all lines: exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/_metric_exporter/__init__.py
+6-2
Original file line number
Diff line number
Diff line change
@@ -169,9 +169,13 @@ def _translate_data(
169
169
)
170
170
171
171
defexport(
172
-
self, metrics: Sequence[Metric], *args, **kwargs
172
+
self,
173
+
metrics: Sequence[Metric],
174
+
timeout_millis: float=10_000,
175
+
**kwargs,
173
176
) ->MetricExportResult:
177
+
# TODO(#2663): OTLPExporterMixin should pass timeout to gRPC
0 commit comments