Skip to content

Commit

Permalink
adding option for jaeger service name env var
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Nov 15, 2023
1 parent 0e9c419 commit 8695457
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PLATER/services/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

VERSION = os.environ.get('PLATER_VERSION', '1.4.0-2')


logger = LoggingUtil.init_logging(
__name__,
config.get('logging_level'),
Expand Down Expand Up @@ -66,9 +65,8 @@
agent_host_name=os.environ.get("JAEGER_HOST", "localhost"),
agent_port=int(os.environ.get("JAEGER_PORT", "6831")),
)

resource = Resource(attributes={
SERVICE_NAME: plater_service_name
SERVICE_NAME: os.environ.get("JAEGER_SERVICE_NAME", plater_service_name),
})
provider = TracerProvider(resource=resource)
# processor = BatchSpanProcessor(ConsoleSpanExporter())
Expand Down

0 comments on commit 8695457

Please sign in to comment.