Skip to content

Commit 601b053

Browse files
fix: add authorization header for trace ingestion
1 parent 4fee82a commit 601b053

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/examples/autogen_example/mock_llm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
langtrace.init(
1313
api_key='967b06c4d1858a7e64e58de44708d89e84f8c96a69b20f7276bcb34a7ce495af',
1414
write_spans_to_console=True,
15-
api_host="http://localhost:3000/api/trace"
15+
api_host="http://localhost:3000/api/trace",
16+
headers={
17+
"Authorization": "Bearer 967b06c4d1858a7e64e58de44708d89e84f8c96a69b20f7276bcb34a7ce495af"
18+
}
1619
)
1720

1821
tracer = trace.get_tracer(__name__)

0 commit comments

Comments
 (0)