Skip to content

Commit

Permalink
avoid importing uptrace by default
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Oct 16, 2023
1 parent fff98d5 commit 1b1709a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/chainlit/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from functools import wraps
from socket import gethostname

import uptrace
from chainlit.config import config
from chainlit.version import __version__

Expand Down Expand Up @@ -54,6 +53,7 @@ def _build_resource(
return Resource.create(attrs)

def configure_tracer(self):
import uptrace
from opentelemetry.exporter.otlp.proto.grpc.exporter import (
logger as exporter_logger,
)
Expand Down

0 comments on commit 1b1709a

Please sign in to comment.