Skip to content

Commit 1b8b535

Browse files
authored
Projects and keys (#119)
1 parent 4ba1b71 commit 1b8b535

18 files changed

+831
-69
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Claude Code settings
21
.claude/
2+
.package-lock.json

api-reference/introduction.mdx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@ title: "Introduction"
44

55
The following is a list of publicly available APIs you can use with the [Traceloop platform](https://app.traceloop.com).
66

7-
All APIs require an API key to be used. You can get one by [signing up](https://app.traceloop.com),
8-
and then going to the [API Keys](https://app.traceloop.com/settings/api-keys) page.
7+
All APIs require an API key to be used for authentication.
8+
9+
<Note>
10+
**To generate an API key:**
11+
1. [Sign up](https://app.traceloop.com) for a Traceloop account if you haven't already
12+
2. Go to [Settings → Organization](https://app.traceloop.com/settings/api-keys)
13+
3. Select a project and environment
14+
4. Click **Generate API key** and copy it immediately
15+
16+
[Detailed instructions →](/settings/managing-api-keys)
17+
</Note>

datasets/sdk-usage.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ const client = traceloop.getClient();
3737
</CodeGroup>
3838

3939
<Note>
40-
Make sure you've created an API key and set it as an environment variable
41-
`TRACELOOP_API_KEY` before you start. Check out the SDK's [getting started
42-
guide](/openllmetry/getting-started-python) for more information.
40+
**Prerequisites:** You need an API key set as the environment variable `TRACELOOP_API_KEY`.
41+
[Generate one in Settings →](/settings/managing-api-keys)
4342
</Note>
4443

4544
The SDK fetches your datasets from Traceloop servers. Changes made to a draft dataset version are immediately available in the UI.

experiments/running-from-code.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ const client = traceloop.getClient();
3939
</CodeGroup>
4040

4141
<Note>
42-
Make sure you've created an API key and set it as an environment variable
43-
`TRACELOOP_API_KEY` before you start. Check out the SDK's [getting started
44-
guide](/openllmetry/getting-started-python) for more information.
42+
**Prerequisites:** You need an API key set as the environment variable `TRACELOOP_API_KEY`.
43+
[Generate one in Settings →](/settings/managing-api-keys)
4544
</Note>
4645

4746

img/settings/project-dark.png

73.7 KB
Loading

img/settings/project-light.png

65.9 KB
Loading

img/settings/projects-dark.png

65.1 KB
Loading

img/settings/projects-light.png

65.2 KB
Loading

mint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@
178178
"group": "Prompt Management",
179179
"pages": ["prompts/quick-start", "prompts/registry", "prompts/sdk-usage"]
180180
},
181+
{
182+
"group": "Settings",
183+
"pages": [
184+
"settings/managing-api-keys",
185+
"settings/projects-and-environments"
186+
]
187+
},
181188
{
182189
"group": "Integrations",
183190
"pages": ["integrations/posthog"]

openllmetry/getting-started-go.mdx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,29 @@ For Traceloop, read on. For other options, see [Exporting](/openllmetry/integrat
109109

110110
### Using Traceloop Cloud
111111

112-
Go to [Traceloop](https://app.traceloop.com), and create a new account.
113-
Then, click on **Environments** on the left-hand navigation bar. Or go to directly to https://app.traceloop.com/settings/api-keys.
114-
Click **Generate API Key** to generate an API key for the developement environment and click **Copy API Key** to copy it over.
112+
<Note>
113+
You need an API key to send traces to Traceloop.
114+
[Generate one in Settings](https://app.traceloop.com/settings/api-keys) by selecting
115+
a project and environment, then click **Generate API key**.
115116

116-
<Warning>Make sure to copy it as it won't be shown again.</Warning>
117+
⚠️ **Important:** Copy the key immediately - it won't be shown again after you close or reload the page.
117118

118-
<Frame>
119-
<img className="block dark:hidden" src="/img/api-key-light.png" />
120-
<img className="hidden dark:block" src="/img/api-key-dark.png" />
121-
</Frame>
119+
[Detailed instructions →](/settings/managing-api-keys)
120+
</Note>
121+
122+
Set the API key as an environment variable in your app named `TRACELOOP_API_KEY`:
122123

123-
Set the copied Traceloop's API key as an environment variable in your app named `TRACELOOP_API_KEY`.
124+
```bash
125+
export TRACELOOP_API_KEY=your_api_key_here
126+
```
124127

125128
Done! You'll get instant visibility into everything that's happening with your LLM.
126129
If you're calling a vector DB, or any other external service or database, you'll also see it in the Traceloop dashboard.
127130

131+
<Tip>
132+
**Not seeing traces?** Make sure you're viewing the correct project and environment in the
133+
dashboard that matches your API key. See [Troubleshooting](/settings/managing-api-keys#troubleshooting).
134+
</Tip>
135+
128136
</Step>
129137
</Steps>

0 commit comments

Comments
 (0)