Skip to content

Commit 1eb2a31

Browse files
committed
chore: Fix linting and missing tox keys
Signed-off-by: Jayson Reis <[email protected]>
1 parent 496566d commit 1eb2a31

File tree

2 files changed

+3
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-pulsar/src/opentelemetry/instrumentation/pulsar

2 files changed

+3
-2
lines changed

instrumentation/opentelemetry-instrumentation-pulsar/src/opentelemetry/instrumentation/pulsar/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def subscribe(self, topic, *args, **kwargs):
124124

125125
@wraps(message_listener)
126126
def wrapper( # pylint: disable=function-redefined
127-
consumer, message: _InstrumentedMessage, *args, **kwargs
127+
consumer, message: "_InstrumentedMessage", *args, **kwargs
128128
):
129129
ctx = propagator.extract(message.properties())
130130
span = self._tracer.start_span(
@@ -298,4 +298,4 @@ def _uninstrument(self, **kwargs):
298298
unwrap(_InstrumentedProducer, "__init__")
299299

300300

301-
__all__ = (PulsarInstrumentor,)
301+
__all__ = ("PulsarInstrumentor",)

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ commands_pre =
329329
pika{0,1}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pika[test]
330330

331331
kafka-python: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python[test]
332+
pulsar: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pulsar[test]
332333

333334
grpc: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-grpc[test]
334335

0 commit comments

Comments
 (0)