File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/service-library/src/servicelib Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,7 @@ def setup_tracing(
7474 trace .set_tracer_provider (TracerProvider (resource = resource ))
7575 tracer_provider : trace .TracerProvider = trace .get_tracer_provider ()
7676
77- opentelemetry_collector_path = "/v1/traces"
78- tracing_destination : str = f"{ URL (opentelemetry_collector_endpoint ).with_port (opentelemetry_collector_port ).with_path (opentelemetry_collector_path )} "
77+ tracing_destination : str = f"{ URL (opentelemetry_collector_endpoint ).with_port (opentelemetry_collector_port ).with_path ('/v1/traces' )} "
7978
8079 _logger .info (
8180 "Trying to connect service %s to tracing collector at %s." ,
Original file line number Diff line number Diff line change @@ -81,8 +81,7 @@ def setup_tracing(
8181 f"{ tracing_settings .TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT } "
8282 )
8383
84- opentelemetry_collector_path = "/v1/traces"
85- tracing_destination : str = f"{ URL (opentelemetry_collector_endpoint ).with_port (tracing_settings .TRACING_OPENTELEMETRY_COLLECTOR_PORT ).with_path (opentelemetry_collector_path )} "
84+ tracing_destination : str = f"{ URL (opentelemetry_collector_endpoint ).with_port (tracing_settings .TRACING_OPENTELEMETRY_COLLECTOR_PORT ).with_path ('/v1/traces' )} "
8685
8786 _logger .info (
8887 "Trying to connect service %s to opentelemetry tracing collector at %s." ,
You can’t perform that action at this time.
0 commit comments