@opentelemetry/core을(를) 2.x에서 3.x로 업그레이드하기
@opentelemetry/core 2.12.0과 3.1.1의 공개 API를 TypeScript 타입에서 자동으로 비교한 결과입니다. 시그니처 변경은 호환성이 깨질 가능성이 있다는 뜻이며 확정은 아닙니다.
요약
| 삭제된 import 경로 | 0 |
|---|---|
| 삭제된 export | 4 |
| 변경된 시그니처 | 2 |
| 삭제된 클래스·인터페이스 멤버 | 0 |
| 변경된 클래스·인터페이스 멤버 | 3 |
| 새로 지원 중단됨 | 2 |
| 요구 사항 변경 (engines, peer 의존성) | 2 |
| 새 export | 7 |
삭제된 export
| import | export | kind | 이전 |
|---|---|---|---|
@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; } |
변경된 시그니처
| export | 이전 | 이후 |
|---|---|---|
@opentelemetry/core · isAttributeValue | (val: unknown): val is AttributeValue | (val: unknown): val is SimpleAttributeValue |
@opentelemetry/core · sanitizeAttributes | (attributes: unknown): Attributes | (inAttributes: unknown): Attributes |
삭제된 클래스·인터페이스 멤버
감지되지 않았습니다.
변경된 클래스·인터페이스 멤버
| member | 이전 | 이후 |
|---|---|---|
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 |
새로 지원 중단됨
| export | @deprecated |
|---|---|
@opentelemetry/core · isAttributeValue | use `isAnyValue`, or `isSimpleAttributeValue`. |
@opentelemetry/core · sanitizeAttributes | Use `cleanAttributes` or `cleanSimpleAttributes`. |
요구 사항 변경 (engines, peer 의존성)
| 이전 | 이후 | |
|---|---|---|
engines.node | ^18.19.0 || >=20.6.0 | — |
peerDependencies.@opentelemetry/api | >=1.0.0 <1.10.0 | — |
새 export (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 |
이 데이터를 AI 에이전트에 제공하세요
Vigia는 무료 MCP 서버입니다. 코딩 에이전트가 코드를 작성하기 전에 버전, 호환성을 깨는 변경, 취약점을 확인합니다. 가입도 API 키도 필요 없습니다.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Cursor에 추가VS Code에 추가★ GitHub에서 스타 누르기
그 밖의 MCP 클라이언트
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }에이전트 스킬(SKILL.md): 에이전트에게 Vigia를 언제 쓸지 알려 줍니다 · 풀 리퀘스트용 GitHub Action
자주 묻는 질문
@opentelemetry/core을(를) 2에서 3(으)로 업그레이드할 때 호환성이 깨지는 변경은 무엇인가요?
@opentelemetry/core 2.12.0과 3.1.1 사이에서 Vigia는 삭제된 export 4개, 변경된 시그니처 2개, 삭제되거나 변경된 클래스·인터페이스 멤버 3개를 찾았습니다.
@opentelemetry/core 3에서 지원 중단된 것은 무엇인가요?
@opentelemetry/core 3.1.1에서 export 또는 멤버 2개가 새로 지원 중단으로 표시되었습니다.
에이전트용
GET https://vigia.coredls.cloud/v1/packages/npm/@opentelemetry/core/upgrade?from=2.12.0&to=3.1.1