Skip to content

Commit a7ab578

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

File tree

2 files changed

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

2 files changed

+3
-2
lines changed

Diff for: 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",)

Diff for: tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ commands_pre =
356356
aio-pika{7,8,9}: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-aio-pika[test]
357357

358358
kafka-python: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-kafka-python[test]
359+
pulsar: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-pulsar[test]
359360

360361
confluent-kafka: pip install {toxinidir}/instrumentation/opentelemetry-instrumentation-confluent-kafka[test]
361362

0 commit comments

Comments
 (0)