You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGE: Package renamed from `@pydantic/logfire-api` to `logfire`.
6
+
7
+
This change makes the core API package easier to use with a simpler, unscoped name.
8
+
9
+
**Migration Guide**:
10
+
11
+
- Update package.json: Change `"@pydantic/logfire-api"` to `"logfire"`
12
+
- Update imports: Change `from '@pydantic/logfire-api'` to `from 'logfire'`
13
+
- Run `npm install` to update lockfiles
14
+
15
+
The package functionality remains identical. This is purely a naming change.
16
+
17
+
**Why this change?**
18
+
The core API package is used across all runtimes (Node, browser, Cloudflare Workers) and deserves the simpler package name. The Node.js-specific SDK with auto-instrumentation is now `@pydantic/logfire-node`.
BREAKING CHANGE: Package renamed from `logfire` to `@pydantic/logfire-node`.
6
+
7
+
This change clarifies that this package is the Node.js-specific SDK with OpenTelemetry auto-instrumentation.
8
+
9
+
**Migration Guide**:
10
+
11
+
- Update package.json: Change `"logfire"` to `"@pydantic/logfire-node"`
12
+
- Update imports: Change `from 'logfire'` to `from '@pydantic/logfire-node'`
13
+
- Run `npm install` to update lockfiles
14
+
15
+
The package functionality remains identical. This is purely a naming change.
16
+
17
+
**Why this change?**
18
+
The core API package (now simply called `logfire`) is used across all runtimes. The Node.js SDK with auto-instrumentation is a more specialized package and should have a scoped, descriptive name.
-`packages/tooling-config` - Shared build and linting configuration
@@ -21,21 +21,21 @@ This is an **npm workspace monorepo** managed with **Turborepo**:
21
21
22
22
### Package Relationships
23
23
24
-
-`logfire-api` is the base package that provides the core tracing API (`span`, `info`, `debug`, `error`, etc.) - it wraps OpenTelemetry's trace API with convenience methods
25
-
-`logfire` (Node.js SDK) depends on `logfire-api` and adds automatic instrumentation via `@opentelemetry/auto-instrumentations-node`
26
-
-`logfire-cf-workers` depends on `logfire-api` and adds Cloudflare Workers-specific instrumentation
27
-
-`logfire-browser` depends on `logfire-api` and adds browser-specific instrumentation
24
+
-`logfire` (published from `packages/logfire-api`) is the base package that provides the core tracing API (`span`, `info`, `debug`, `error`, etc.) - it wraps OpenTelemetry's trace API with convenience methods
25
+
-`@pydantic/logfire-node` (from `packages/logfire-node`) depends on `logfire` and adds automatic instrumentation via `@opentelemetry/auto-instrumentations-node`
26
+
-`@pydantic/logfire-cf-workers` depends on `logfire` and adds Cloudflare Workers-specific instrumentation
27
+
-`@pydantic/logfire-browser` depends on `logfire` and adds browser-specific instrumentation
28
28
29
29
### Key Concepts
30
30
31
-
**Trace API** (`logfire-api`):
31
+
**Trace API** (`logfire` package):
32
32
33
33
- Provides convenience wrappers around OpenTelemetry spans with log levels (trace, debug, info, notice, warn, error, fatal)
34
34
- Uses message template formatting with attribute extraction (see `formatter.ts`)
35
35
- Uses ULID for trace ID generation (see `ULIDGenerator.ts`)
36
36
- Supports attribute scrubbing for sensitive data (see `AttributeScrubber.ts`)
0 commit comments