Skip to content

Commit

Permalink
:lint: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rathijitpapon committed Mar 27, 2024
1 parent 80f9310 commit 2d59ed9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions backend/app/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# setup tracing
from app.services.tracing import setup_tracing
setup_tracing()
import app.services.tracing # noqa

from fastapi import FastAPI, HTTPException
from fastapi.responses import RedirectResponse
Expand Down
5 changes: 4 additions & 1 deletion backend/app/services/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ def setup_tracing():
span_processor = SimpleSpanProcessor(span_exporter=span_exporter)
tracer_provider.add_span_processor(span_processor=span_processor)
trace_api.set_tracer_provider(tracer_provider=tracer_provider)
LlamaIndexInstrumentor().instrument()
LlamaIndexInstrumentor().instrument()


setup_tracing()

0 comments on commit 2d59ed9

Please sign in to comment.