Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions pages/docs/observability/features/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
import { MenuSubSeparator } from "@/components/MenuSubSeparator";

export default {
"-- Core": {
"-- Essential": {
type: "separator",
title: <MenuSubSeparator>Essential</MenuSubSeparator>,
},
observations: {},
traces: {},
sessions: {},

"-- Attributes": {
type: "separator",
title: <MenuSubSeparator>Attributes</MenuSubSeparator>,
},
users: {},
environments: {},
tags: {},
metadata: {},
"trace-ids-and-distributed-tracing": {},
tags: {},
environments: {},
"log-levels": {},
"releases-and-versioning": {},

"-- Advanced": {
type: "separator",
title: <MenuSubSeparator>Advanced</MenuSubSeparator>,
},
"user-feedback": {},
"log-levels": {},
"*": {
layout: "default",
},
Expand Down
36 changes: 18 additions & 18 deletions pages/docs/observability/features/environments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,6 @@ You can configure the environment by setting the `LANGFUSE_TRACING_ENVIRONMENT`
If both are specified, the initialization parameter takes precedence.
If nothing is specified, the default environment is `default`.

## Data Model

The `environment` attribute is available on all events in Langfuse:

- Traces
- Observations (spans, events, generations)
- Scores
- Sessions

See [Data Model](/docs/tracing-data-model) for more details.

The environment must be a string that follows this regex pattern: `^(?!langfuse)[a-z0-9-_]+$` with at most 40 characters.

This means:

- Cannot start with "langfuse"
- Can only contain lowercase letters, numbers, hyphens, and underscores

## Usage

<LangTabs items={["Python SDK", "JS/TS SDK", "OpenTelemetry", "OpenAI (Python)", "OpenAI (JS/TS)", "Langchain (Python)", "Langchain (JS/TS)", "Vercel AI SDK (JS/TS)"]}>
Expand Down Expand Up @@ -218,6 +200,24 @@ For guidance on how to structure, separate, and work with multiple environments
2. **Environment-Specific Analysis**: Use environments to analyze and compare metrics across different deployment stages.
3. **Testing**: Use separate environments for testing to avoid polluting production data.

## Data Model

The `environment` attribute is available on all events in Langfuse:

- Traces
- Observations (spans, events, generations)
- Scores
- Sessions

See [Data Model](/docs/tracing-data-model) for more details.

The environment must be a string that follows this regex pattern: `^(?!langfuse)[a-z0-9-_]+$` with at most 40 characters.

This means:

- Cannot start with "langfuse"
- Can only contain lowercase letters, numbers, hyphens, and underscores

## GitHub Discussions

import { GhDiscussionsPreview } from "@/components/gh-discussions/GhDiscussionsPreview";
Expand Down
Loading
Loading