Skip to content

Commit cc37ff5

Browse files
committed
Fix broken test
1 parent e11bbbf commit cc37ff5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/_log_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(
6262
] = None,
6363
timeout: Optional[float] = None,
6464
compression: Optional[Compression] = None,
65-
channel_options: Optional[list[Tuple[str, str]]] = None,
65+
channel_options: Optional[Tuple[Tuple[str, str]]] = None,
6666
):
6767
insecure_logs = environ.get(OTEL_EXPORTER_OTLP_LOGS_INSECURE)
6868
if insecure is None and insecure_logs is not None:

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def __init__(
285285
] = None,
286286
timeout: Optional[float] = None,
287287
compression: Optional[Compression] = None,
288-
channel_options: Optional[list[Tuple[str, str]]] = None,
288+
channel_options: Optional[Tuple[Tuple[str, str]]] = None,
289289
):
290290
super().__init__()
291291
self._result = result
@@ -322,11 +322,11 @@ def __init__(
322322
overridden_options = {
323323
opt_name for (opt_name, _) in channel_options
324324
}
325-
default_options = [
325+
default_options = tuple(
326326
(opt_name, opt_value)
327327
for opt_name, opt_value in _OTLP_GRPC_CHANNEL_OPTIONS
328328
if opt_name not in overridden_options
329-
]
329+
)
330330
self._channel_options = default_options + channel_options
331331
else:
332332
self._channel_options = tuple(_OTLP_GRPC_CHANNEL_OPTIONS)

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(
108108
| None = None,
109109
preferred_aggregation: dict[type, Aggregation] | None = None,
110110
max_export_batch_size: int | None = None,
111-
channel_options: list[Tuple[str, str]] | None = None,
111+
channel_options: Tuple[Tuple[str, str]] | None = None,
112112
):
113113
insecure_metrics = environ.get(OTEL_EXPORTER_OTLP_METRICS_INSECURE)
114114
if insecure is None and insecure_metrics is not None:

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __init__(
9494
] = None,
9595
timeout: Optional[float] = None,
9696
compression: Optional[Compression] = None,
97-
channel_options: Optional[TypingSequence[Tuple[str, str]]] = None,
97+
channel_options: Optional[Tuple[Tuple[str, str]]] = None,
9898
):
9999
insecure_spans = environ.get(OTEL_EXPORTER_OTLP_TRACES_INSECURE)
100100
if insecure is None and insecure_spans is not None:

0 commit comments

Comments
 (0)