Aktualizacja @opentelemetry/core z 2.x do 3.x
Porównanie publicznego API @opentelemetry/core 2.12.0 i 3.1.1, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 4 |
| Zmienione sygnatury | 2 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 3 |
| Nowo wycofane | 2 |
| Zmiany wymagań (engines, zależności peer) | 2 |
| Nowe eksporty | 7 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
@opentelemetry/core | unrefTimer | function | (timer: number | { unref(): unknown; }): void |
@opentelemetry/core | _globalThis | variable | typeof globalThis |
@opentelemetry/core | getTimeOrigin | function | (): number |
@opentelemetry/core | otperformance | variable | { now(): number; readonly timeOrigin: number; } |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@opentelemetry/core · isAttributeValue | (val: unknown): val is AttributeValue | (val: unknown): val is SimpleAttributeValue |
@opentelemetry/core · sanitizeAttributes | (attributes: unknown): Attributes | (inAttributes: unknown): Attributes |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
TraceState.set | (key: string, value: string): TraceState | (key: string, value: string): TraceState$1 |
TraceState.unset | (key: string): TraceState | (key: string): TraceState$1 |
TraceState.constructor | (rawTraceState?: string | undefined): TraceState | (rawTraceState?: string | undefined): TraceState$1 |
Nowo wycofane
| export | @deprecated |
|---|---|
@opentelemetry/core · isAttributeValue | use `isAnyValue`, or `isSimpleAttributeValue`. |
@opentelemetry/core · sanitizeAttributes | Use `cleanAttributes` or `cleanSimpleAttributes`. |
Zmiany wymagań (engines, zależności peer)
| Przed | Po | |
|---|---|---|
engines.node | ^18.19.0 || >=20.6.0 | — |
peerDependencies.@opentelemetry/api | >=1.0.0 <1.10.0 | — |
Nowe eksporty (7)
| import | export | kind |
|---|---|---|
@opentelemetry/core | isAnyValue | function |
@opentelemetry/core | cleanAttributes | function |
@opentelemetry/core | maybeAddAttribute | function |
@opentelemetry/core | AddAttributeDecision | enum |
@opentelemetry/core | cleanSimpleAttributes | function |
@opentelemetry/core | isSimpleAttributeValue | function |
@opentelemetry/core | maybeAddSimpleAttribute | function |
Przekaż te dane swojemu agentowi AI
Vigia to darmowy serwer MCP: Twój agent programistyczny sprawdza wersje, zmiany łamiące zgodność i podatności, zanim napisze kod. Bez rejestracji i klucza API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Dodaj do CursorDodaj do VS Code★ Gwiazdka na GitHubie
Dowolny inny klient MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill dla agentów (SKILL.md): mówi agentowi, kiedy używać Vigii · GitHub Action dla pull requestów
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji @opentelemetry/core z 2 do 3?
Między @opentelemetry/core 2.12.0 a 3.1.1 Vigia znalazła 4 usuniętych eksportów, 2 zmienionych sygnatur i 3 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w @opentelemetry/core 3?
2 eksportów lub składowych oznaczono w @opentelemetry/core 3.1.1 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/@opentelemetry/core/upgrade?from=2.12.0&to=3.1.1