mirror of
https://github.com/devproje/balance-application.git
synced 2024-10-20 15:11:21 +00:00
fix: function
This commit is contained in:
parent
70bc590b0c
commit
b787891c27
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -43,11 +43,11 @@ app.include_router(router=balance)
|
|||
|
||||
if get_otld():
|
||||
import logging
|
||||
from otlp_tracing import configure_otel_otlp
|
||||
from otlp_tracing import configure_oltp_grpc_tracing
|
||||
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
tracer = configure_otel_otlp()
|
||||
tracer = configure_oltp_grpc_tracing()
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
FastAPIInstrumentor.instrument_app(app)
|
||||
|
|
Loading…
Reference in a new issue