Skip to content

Commit f3bfa80

Browse files
committed
Merge branch 'main' into development
2 parents 1deae92 + 9f2f792 commit f3bfa80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/langtrace_python_sdk/langtrace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
validate_instrumentations,
7676
)
7777
from langtrace_python_sdk.utils.langtrace_sampler import LangtraceSampler
78+
from langtrace_python_sdk.extensions.langtrace_exporter import LangTraceExporter
7879
from sentry_sdk.types import Event, Hint
7980

8081
logging.disable(level=logging.INFO)
@@ -150,7 +151,7 @@ def get_exporter(config: LangtraceConfig, host: str):
150151
headers = get_headers(config)
151152
host = f"{host}/api/trace" if host == LANGTRACE_REMOTE_URL else host
152153
if "http" in host.lower() or "https" in host.lower():
153-
return HTTPExporter(endpoint=host, headers=headers)
154+
return LangTraceExporter(host, config.api_key, config.disable_logging)
154155
else:
155156
return GRPCExporter(endpoint=host, headers=headers)
156157

0 commit comments

Comments
 (0)