@blueking/open-telemetry 0.0.22-beta.1 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bk-rum.global.js +2 -2
- package/dist/bk-rum.global.js.map +1 -1
- package/dist/core/config.d.ts +6 -8
- package/dist/core/runtime-context.d.ts +1 -1
- package/dist/core/sdk.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +555 -539
- package/dist/index.js.map +1 -1
- package/dist/plugins/device.d.ts +2 -2
- package/dist/plugins/resource.d.ts +1 -0
- package/dist/plugins/web-vitals.d.ts +1 -3
- package/package.json +1 -1
- package/skills/bk-rum-otele/SKILL.md +9 -11
- package/skills/bk-rum-otele/references/api.md +1 -1
- package/skills/bk-rum-otele/references/configuration.md +3 -3
- package/skills/bk-rum-otele/references/plugins-error-security.md +4 -7
- package/skills/bk-rum-otele/references/plugins-experience.md +4 -4
- package/skills/bk-rum-otele/references/telemetry-reference.md +1 -1
package/dist/core/config.d.ts
CHANGED
|
@@ -77,7 +77,6 @@ export type BkOTRequestContext = {
|
|
|
77
77
|
response?: Response;
|
|
78
78
|
type: 'fetch';
|
|
79
79
|
} | {
|
|
80
|
-
requestBody?: Document | null | XMLHttpRequestBodyInit;
|
|
81
80
|
type: 'xhr';
|
|
82
81
|
xhr: XMLHttpRequest;
|
|
83
82
|
};
|
|
@@ -160,16 +159,15 @@ export interface ResolvedConfigHooks {
|
|
|
160
159
|
export interface ResolvedSessionConfig extends BkOTSessionConfig {
|
|
161
160
|
sampleRate: number;
|
|
162
161
|
}
|
|
163
|
-
export
|
|
164
|
-
export interface ResolvedViewConfig {
|
|
165
|
-
excludedActivityUrls?: BkOTUrlMatcher | BkOTUrlMatcher[];
|
|
166
|
-
loadingTime: boolean;
|
|
167
|
-
tracking: 'auto' | 'manual';
|
|
168
|
-
}
|
|
169
|
-
export interface SignalExporterConfig {
|
|
162
|
+
export interface ResolvedTransportConfig {
|
|
170
163
|
concurrencyLimit?: number;
|
|
171
164
|
endpoint: string;
|
|
172
165
|
headers?: Record<string, string>;
|
|
173
166
|
timeoutMillis?: number;
|
|
174
167
|
}
|
|
168
|
+
export interface ResolvedViewConfig {
|
|
169
|
+
excludedActivityUrls?: BkOTUrlMatcher | BkOTUrlMatcher[];
|
|
170
|
+
loadingTime: boolean;
|
|
171
|
+
tracking: 'auto' | 'manual';
|
|
172
|
+
}
|
|
175
173
|
export declare const resolveConfig: (config: BkOTOptions) => ResolvedBkOTConfig;
|
|
@@ -43,7 +43,7 @@ export interface BkOTViewContext {
|
|
|
43
43
|
* 管理 SDK 运行期公共属性快照。
|
|
44
44
|
*
|
|
45
45
|
* 这里仅保存“后续事件都需要带上”的低成本上下文,Session/View/用户切换时更新快照,
|
|
46
|
-
* 插件发
|
|
46
|
+
* 插件发 Span 时读取当前快照即可,避免每个插件重复维护公共字段。
|
|
47
47
|
*/
|
|
48
48
|
export declare class RumRuntimeContext {
|
|
49
49
|
private readonly actionHistory;
|
package/dist/core/sdk.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Attributes, type Span } from '@opentelemetry/api';
|
|
2
|
-
import { type Instrumentation } from '@opentelemetry/instrumentation';
|
|
3
2
|
import { type BkOTActionEventPayload, type BkOTCustomEventPayload, type BkOTOptions, type BkOTTrackingConsent, type ResolvedBkOTConfig } from './config';
|
|
4
3
|
import { type BkOTPlugin, type BkOTRuntimeContext, type BkOTStartSpanOptions } from './plugin';
|
|
5
4
|
import { type BkOTSessionLifecycleEvent, type BkOTStartViewOptions, type BkOTUserContext } from './runtime-context';
|
|
5
|
+
import type { Instrumentation } from '@opentelemetry/instrumentation';
|
|
6
6
|
export interface BkOTInstance extends Omit<BkOTRuntimeContext, 'notifyActivity' | 'onActivity' | 'onViewChange' | 'onViewCommand' | 'registerInstrumentations' | 'setView'> {
|
|
7
7
|
flush: () => Promise<void>;
|
|
8
8
|
reportAction: (payload: BkOTActionEventPayload) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type BkOTActionEventPayload, type BkOTApplicationConfig, type BkOTAttributesConfig, type BkOTAttributeValue, type BkOTBatchConfig, type BkOTBeforeSendEvent, type BkOTContextConfig, type BkOTCustomEventPayload, type BkOTExtensionsConfig, type BkOTOptions, type BkOTPrivacyConfig, type BkOTRequestConfig, type BkOTRequestContext, type BkOTRequestEvent, type BkOTTrackingConfig, type BkOTTrackingConsent, type BkOTTransportConfig, type BkOTUrlMatcher, type BkOTViewConfig, resolveConfig, type ResolvedApplicationConfig, type ResolvedBkOTConfig, type ResolvedConfigHooks, type ResolvedTransportConfig, type ResolvedViewConfig,
|
|
1
|
+
export { type BkOTActionEventPayload, type BkOTApplicationConfig, type BkOTAttributesConfig, type BkOTAttributeValue, type BkOTBatchConfig, type BkOTBeforeSendEvent, type BkOTContextConfig, type BkOTCustomEventPayload, type BkOTExtensionsConfig, type BkOTOptions, type BkOTPrivacyConfig, type BkOTRequestConfig, type BkOTRequestContext, type BkOTRequestEvent, type BkOTTrackingConfig, type BkOTTrackingConsent, type BkOTTransportConfig, type BkOTUrlMatcher, type BkOTViewConfig, resolveConfig, type ResolvedApplicationConfig, type ResolvedBkOTConfig, type ResolvedConfigHooks, type ResolvedTransportConfig, type ResolvedViewConfig, } from './core/config';
|
|
2
2
|
export { type BkOTPlugin, type BkOTRuntimeContext, createPlugin, type PluginManager } from './core/plugin';
|
|
3
3
|
export { FilteringSpanProcessor } from './core/processor';
|
|
4
4
|
export { type BkOTSessionLifecycleEvent, type BkOTStartViewOptions, type BkOTUserContext, type BkOTViewContext, RumRuntimeContext, } from './core/runtime-context';
|