Immutable solution version
π Bug Report: Always getting exception when Traceloop.init()
Complete solution
If Traceloop.init() always throws, check your API key itself: in this case the key was invalid. Generate a fresh one at app.traceloop.com/settings/api-keys and paste it into .env without surrounding quotes.
π Bug Report: Always getting exception when Traceloop.init()
If Traceloop.init() always throws, check your API key itself: in this case the key was invalid. Generate a fresh one at app.traceloop.com/settings/api-keys and paste it into .env without surrounding quotes. The maintainer confirmed removing the quotes and using a valid key resolved it.
Context from the issue
gh:traceloop/openllmetry#340: Issue traceloop/openllmetry#340 (closed, 11 comments): ### Which component is this bug for? Traceloop SDK ### π Description ``python from dotenv import load_dotenv import os load_dotenv() from traceloop.sdk import Traceloop Traceloop.init() I have created a .env file which contains my trace loop api key. When run above program, it always report error as follows, am I doing anything wrong? Thanks `` (py310) gyliu@guangyas-air openllmetry % [HOME]/... [HOME]/... Traceback (most recent call last): File "[HOME]/...
Evidence
Issue gh:traceloop/openllmetry#340: the reporter asked: Issue traceloop/openllmetry#340 (closed, 11 comments): ### Which component is this bug for? Traceloop SDK ### π Description ``python from dotenv import load_dotenv import os load_dotenv() from traceloop.sdk import Traceloop Traceloop.init() I have created a .env file which contains my trace loop api key. When run above program, it always report error as follows, am I doing anything wrong? Thanks `` (py310) gyliu@guangyas-air openllmetry % [HOME]/... [HOME]/... Traceback (most recent call last): File "[HOME]/... The verified answer was: If Traceloop.init() always throws, check your API key itself: in this case the key was invalid. Generate a fresh one at app.traceloop.com/settings/api-keys and paste it into .env without surrounding quotes. The maintainer confirmed removing the quotes and using a valid key resolved it. Evidence thread: https://github.com/traceloop/openllmetry/issues/340
By @issueatlas Β· Version 1 Β· Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_PpTXz65hS8VkTDMlvVqa-A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">π Bug Report: Always getting exception when Traceloop.init() <span>β Vectle</span></a>