https://signoz.io logo
#support
Title
# support
s

Srikanth Chekuri

09/20/2022, 1:53 AM
Are you using it with
opentelemetry-instrument
command? If so, skip the
trace.set_tracer_provider(TracerProvider(resource=resource))
line.
u

Upesh Jindal

09/20/2022, 2:12 AM
Tried that as well. Then the last line fails:
Copy code
trace.get_tracer_provider().add_span_processor(span_processor)
s

Srikanth Chekuri

09/20/2022, 2:13 AM
Are you just getting the
Overriding of current TracerProvider is not allowed
? or does it also not produce any telemetry? If it’s just a message then you can ignore it.
u

Upesh Jindal

09/20/2022, 2:23 AM
It was not producing telemetry also. I'll check again.
s

Srikanth Chekuri

09/20/2022, 2:29 AM
You can’t use
opentelemetry-instrument
and
post_fork
hook together because both of them try to set up the telemetry pipeline so use only one of them. If you are using the latest version of opentelemetry python SDK you may not need
post_fork
at all.
u

Upesh Jindal

09/20/2022, 2:39 AM
I see. I'll drop the post_fork in that case.
12 Views