Skip to content

Commit fa81fc6

Browse files
committed
refactor code
Signed-off-by: Renaud Bourassa <[email protected]>
1 parent 419c51a commit fa81fc6

File tree

1 file changed

+2
-4
lines changed
  • packages/nvidia_nat_opentelemetry/src/nat/plugins/opentelemetry

1 file changed

+2
-4
lines changed

packages/nvidia_nat_opentelemetry/src/nat/plugins/opentelemetry/register.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,9 @@ async def dbnl_telemetry_exporter(config: DBNLTelemetryExporter, builder: Builde
209209

210210
from nat.plugins.opentelemetry import OTLPSpanAdapterExporter
211211

212-
api_token = config.api_token
213-
project_id = config.project_id
214212
headers = {
215-
"Authorization": f"Bearer {api_token}",
216-
"x-dbnl-project-id": project_id,
213+
"Authorization": f"Bearer {config.api_token}",
214+
"x-dbnl-project-id": config.project_id,
217215
}
218216

219217
endpoint = config.api_url.rstrip("/") + "/otel/v1/traces"

0 commit comments

Comments
 (0)