Skip to content

Commit

Permalink
feat: configure service name via env var (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik authored Jan 12, 2024
1 parent 87ce0bd commit 9f42f1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aidial_adapter_bedrock/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@
os.environ.get("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT") is not None
)

SERVICE_NAME = os.environ.get("OTEL_SERVICE_NAME", "aidial-bedrock")

app = DIALApp(
description="AWS Bedrock adapter for DIAL API",
add_healthcheck=True,
telemetry_config=TelemetryConfig(
service_name="bedrock",
service_name=SERVICE_NAME,
tracing=TracingConfig(
otlp_export=OTLP_EXPORT_ENABLED,
logging=True,
Expand Down

0 comments on commit 9f42f1e

Please sign in to comment.