Skip to content

Commit 55e4d8b

Browse files
Corvin LasoggaCoLa5
Corvin Lasogga
authored andcommitted
added streaming redezvous type
1 parent 0065180 commit 55e4d8b

File tree

1 file changed

+11
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc

1 file changed

+11
-0
lines changed

instrumentation/opentelemetry-instrumentation-grpc/src/opentelemetry/instrumentation/grpc/_types.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
"""Internal types."""
1616

17+
import abc
1718
from typing import Dict, Iterator, TypeVar, Union
1819

1920
import grpc
@@ -27,3 +28,13 @@
2728

2829
ProtoMessageOrIterator = Union[ProtoMessage, Iterator[ProtoMessage]]
2930
"""Type for a protobuf message or a iterator of protobuf messages."""
31+
32+
33+
class StreamingRendezvous(
34+
grpc.Call,
35+
grpc.Future,
36+
grpc.RpcError,
37+
Iterator,
38+
abc.ABC
39+
):
40+
"""Class for a streaming rendezvous."""

0 commit comments

Comments
 (0)