ترقية @opentelemetry/core من 2.x إلى 3.x
مقارنة الواجهة العامة لـ @opentelemetry/core بين 2.12.0 و3.1.1، محسوبة تلقائيًا من أنواع TypeScript. التوقيع المعدّل تغيير محتمل غير متوافق، وليس أمرًا مؤكدًا.
الملخص
| مسارات الاستيراد المحذوفة | 0 |
|---|---|
| الصادرات المحذوفة | 4 |
| التوقيعات المعدّلة | 2 |
| أعضاء الأصناف أو الواجهات المحذوفة | 0 |
| أعضاء الأصناف أو الواجهات المعدّلة | 3 |
| موقوفة حديثًا | 2 |
| تغييرات المتطلبات (engines واعتماديات peer) | 2 |
| صادرات جديدة | 7 |
الصادرات المحذوفة
| 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 | — |
صادرات جديدة (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 |
زوّد وكيل الذكاء الاصطناعي بهذه البيانات
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 عدد 4 من الصادرات المحذوفة، و2 من التوقيعات المعدّلة، و3 من أعضاء الأصناف أو الواجهات المحذوفة أو المعدّلة.
ما الذي أصبح موقوفًا في @opentelemetry/core 3؟
عُلِّم 2 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في @opentelemetry/core 3.1.1.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/@opentelemetry/core/upgrade?from=2.12.0&to=3.1.1