@blueking/open-telemetry 0.0.22 → 0.0.23
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/README.md +258 -70
- package/dist/bk-rum.global.js +1 -1
- package/dist/bk-rum.global.js.map +1 -1
- package/dist/core/config.d.ts +4 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +327 -397
- package/dist/index.js.map +1 -1
- package/dist/plugins/blank-screen.d.ts +1 -1
- package/dist/plugins/common.d.ts +2 -2
- package/dist/schema/attributes.d.ts +6 -7
- package/dist/schema/span.d.ts +24 -15
- package/package.json +1 -1
- package/skills/bk-rum-otele/SKILL.md +26 -23
- package/skills/bk-rum-otele/references/actions.md +166 -0
- package/skills/bk-rum-otele/references/api.md +248 -215
- package/skills/bk-rum-otele/references/architecture.md +139 -37
- package/skills/bk-rum-otele/references/blank-screen.md +190 -0
- package/skills/bk-rum-otele/references/capabilities.md +175 -83
- package/skills/bk-rum-otele/references/configuration.md +226 -151
- package/skills/bk-rum-otele/references/data-model.md +157 -24
- package/skills/bk-rum-otele/references/errors-security.md +168 -0
- package/skills/bk-rum-otele/references/extensions.md +237 -0
- package/skills/bk-rum-otele/references/framework-integration.md +318 -75
- package/skills/bk-rum-otele/references/getting-started.md +186 -70
- package/skills/bk-rum-otele/references/network.md +258 -0
- package/skills/bk-rum-otele/references/performance.md +198 -0
- package/skills/bk-rum-otele/references/privacy.md +236 -67
- package/skills/bk-rum-otele/references/production.md +266 -0
- package/skills/bk-rum-otele/references/session-context.md +185 -0
- package/skills/bk-rum-otele/references/telemetry-reference.md +500 -51
- package/skills/bk-rum-otele/references/transport-sampling.md +321 -32
- package/skills/bk-rum-otele/references/troubleshooting.md +341 -151
- package/skills/bk-rum-otele/references/views-routing.md +211 -0
- package/skills/bk-rum-otele/references/concepts.md +0 -60
- package/skills/bk-rum-otele/references/custom-plugin.md +0 -170
- package/skills/bk-rum-otele/references/plugins-basic.md +0 -135
- package/skills/bk-rum-otele/references/plugins-error-security.md +0 -83
- package/skills/bk-rum-otele/references/plugins-experience.md +0 -124
- package/skills/bk-rum-otele/references/plugins-network.md +0 -32
- package/skills/bk-rum-otele/references/plugins.md +0 -62
package/dist/core/config.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { BkOTBlankScreenPluginOptions } from '../plugins/blank-screen';
|
|
|
3
3
|
import type { BkOTDevicePluginOptions } from '../plugins/device';
|
|
4
4
|
import type { BkOTLongTaskPluginOptions } from '../plugins/long-task';
|
|
5
5
|
import type { BkOTSessionConfig } from '../plugins/session';
|
|
6
|
+
import type { RumRequestOutcome } from '../schema/span';
|
|
6
7
|
import type { BkOTPlugin } from './plugin';
|
|
7
8
|
import type { BkOTUserContext } from './runtime-context';
|
|
8
9
|
import type { Attributes } from '@opentelemetry/api';
|
|
@@ -71,6 +72,7 @@ export interface BkOTRequestConfig {
|
|
|
71
72
|
excludedUrls?: BkOTUrlMatcher | BkOTUrlMatcher[];
|
|
72
73
|
beforeSend?: (event: BkOTRequestEvent, context: BkOTRequestContext) => boolean | void;
|
|
73
74
|
}
|
|
75
|
+
export type BkOTRequestOutcome = RumRequestOutcome;
|
|
74
76
|
export type BkOTRequestContext = {
|
|
75
77
|
error?: unknown;
|
|
76
78
|
request: Request | RequestInit;
|
|
@@ -85,8 +87,8 @@ export interface BkOTRequestEvent {
|
|
|
85
87
|
type: 'resource';
|
|
86
88
|
resource: {
|
|
87
89
|
method?: string;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
outcome: BkOTRequestOutcome;
|
|
91
|
+
transport: 'fetch' | 'xhr';
|
|
90
92
|
url?: string;
|
|
91
93
|
};
|
|
92
94
|
}
|
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, } from './core/config';
|
|
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 BkOTRequestOutcome, 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';
|
|
@@ -16,4 +16,4 @@ export { type BkOTSessionConfig, createSessionPlugin } from './plugins/session';
|
|
|
16
16
|
export { createWebVitalsPlugin } from './plugins/web-vitals';
|
|
17
17
|
export { createWebSocketPlugin } from './plugins/websocket';
|
|
18
18
|
export { RUM_ATTRIBUTES, type RumAttributeKey } from './schema/attributes';
|
|
19
|
-
export { buildRumSpanAttributes,
|
|
19
|
+
export { buildRumSpanAttributes, RUM_SPAN_OUTCOME, RUM_SPAN_TYPE, type RumSpanClassification, type RumSpanOutcome, type RumSpanType, } from './schema/span';
|