docs/examples/http: Remove duplicated call to set_tracer_provider
set_tracer_provider() was called twice using different TracerProvider objects.
It caused that the "parent" span wasn't exported because it was created with a
tracer from the first call to set_tracer_provider that didn't have a configured
span processor.
@@ -35,7 +35,6 @@ tracer = trace.get_tracer(__name__)
exporter = ConsoleSpanExporter()
span_processor = BatchExportSpanProcessor(exporter)
-trace.set_tracer_provider(TracerProvider())
trace.get_tracer_provider().add_span_processor(span_processor)
# Integrations are the glue that binds the OpenTelemetry API and the
