Skip to content

Commit ce223cb

Browse files
remove var
1 parent ee61120 commit ce223cb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/service-library/src/servicelib/aiohttp/tracing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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.",

packages/service-library/src/servicelib/fastapi/tracing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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.",

0 commit comments

Comments
 (0)