@honeycombio/opentelemetry-web
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -6,3 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configureBrowserAttributesResource = exports.computeDeviceProperties = exports.computeNetworkType = exports.computeScreenSize = void 0; | ||
exports.computeDeviceProperties = exports.computeNetworkType = exports.computeScreenSize = void 0; | ||
exports.configureBrowserAttributesResource = configureBrowserAttributesResource; | ||
const resources_1 = require("@opentelemetry/resources"); | ||
@@ -66,2 +67,1 @@ const ua_parser_js_1 = __importDefault(require("ua-parser-js")); | ||
} | ||
exports.configureBrowserAttributesResource = configureBrowserAttributesResource; |
@@ -21,2 +21,3 @@ "use strict"; | ||
'page.search': search, | ||
'url.path': pathname, | ||
}); | ||
@@ -23,0 +24,0 @@ } |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configureCompositeExporter = void 0; | ||
exports.configureCompositeExporter = configureCompositeExporter; | ||
const core_1 = require("@opentelemetry/core"); | ||
@@ -25,3 +25,2 @@ /** | ||
} | ||
exports.configureCompositeExporter = configureCompositeExporter; | ||
/** | ||
@@ -28,0 +27,0 @@ * A custom SpanExporter that wraps a number of other exporters and calls export and shutdown |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildTraceUrl = exports.configureConsoleTraceLinkExporter = void 0; | ||
exports.configureConsoleTraceLinkExporter = configureConsoleTraceLinkExporter; | ||
exports.buildTraceUrl = buildTraceUrl; | ||
const core_1 = require("@opentelemetry/core"); | ||
@@ -18,3 +19,2 @@ const util_1 = require("./util"); | ||
} | ||
exports.configureConsoleTraceLinkExporter = configureConsoleTraceLinkExporter; | ||
/** | ||
@@ -90,2 +90,1 @@ * A custom {@link SpanExporter} that logs Honeycomb URLs for completed traces. | ||
} | ||
exports.buildTraceUrl = buildTraceUrl; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configureEntryPageResource = exports.defaultConfig = void 0; | ||
exports.defaultConfig = void 0; | ||
exports.configureEntryPageResource = configureEntryPageResource; | ||
const resources_1 = require("@opentelemetry/resources"); | ||
@@ -29,3 +30,2 @@ exports.defaultConfig = { | ||
} | ||
exports.configureEntryPageResource = configureEntryPageResource; | ||
function getOptions(config) { | ||
@@ -32,0 +32,0 @@ if (!config) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configureDebug = void 0; | ||
exports.configureDebug = configureDebug; | ||
const api_1 = require("@opentelemetry/api"); | ||
@@ -28,3 +28,2 @@ const util_1 = require("./util"); | ||
} | ||
exports.configureDebug = configureDebug; | ||
function debugTracesApiKey(options) { | ||
@@ -31,0 +30,0 @@ const tracesApiKey = (0, util_1.getTracesApiKey)(options) || ''; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configureHoneycombResource = void 0; | ||
exports.configureHoneycombResource = configureHoneycombResource; | ||
const resources_1 = require("@opentelemetry/resources"); | ||
@@ -12,2 +12,1 @@ const version_1 = require("./version"); | ||
} | ||
exports.configureHoneycombResource = configureHoneycombResource; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configureHoneycombHttpJsonTraceExporter = exports.DATASET_HEADER_KEY = exports.TEAM_HEADER_KEY = void 0; | ||
exports.DATASET_HEADER_KEY = exports.TEAM_HEADER_KEY = void 0; | ||
exports.configureHoneycombHttpJsonTraceExporter = configureHoneycombHttpJsonTraceExporter; | ||
const exporter_trace_otlp_http_1 = require("@opentelemetry/exporter-trace-otlp-http"); | ||
@@ -20,2 +21,1 @@ const util_1 = require("./util"); | ||
} | ||
exports.configureHoneycombHttpJsonTraceExporter = configureHoneycombHttpJsonTraceExporter; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mergeResources = void 0; | ||
exports.mergeResources = mergeResources; | ||
const resources_1 = require("@opentelemetry/resources"); | ||
@@ -17,3 +17,2 @@ /* Takes an array of resources and merges into one mega-resource */ | ||
} | ||
exports.mergeResources = mergeResources; | ||
function validateResource(resource) { | ||
@@ -20,0 +19,0 @@ if (resource instanceof resources_1.Resource) { |
import type { ContextManager } from '@opentelemetry/api'; | ||
import { TextMapPropagator } from '@opentelemetry/api'; | ||
import { InstrumentationOption } from '@opentelemetry/instrumentation'; | ||
import { Instrumentation } from '@opentelemetry/instrumentation'; | ||
import { Detector, DetectorSync, IResource, ResourceAttributes } from '@opentelemetry/resources'; | ||
@@ -11,3 +11,3 @@ import { IdGenerator, Sampler, SpanExporter, SpanLimits, SpanProcessor } from '@opentelemetry/sdk-trace-base'; | ||
textMapPropagator: TextMapPropagator; | ||
instrumentations: InstrumentationOption[]; | ||
instrumentations: (Instrumentation | Instrumentation[])[]; | ||
resource: IResource; | ||
@@ -14,0 +14,0 @@ resourceDetectors: Array<Detector | DetectorSync>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSampleRate = exports.getTracesApiKey = exports.getTracesEndpoint = exports.maybeAppendTracesPath = exports.isClassic = exports.createHoneycombSDKLogMessage = exports.defaultOptions = exports.DEFAULT_SAMPLE_RATE = exports.DEFAULT_SERVICE_NAME = exports.DEFAULT_TRACES_ENDPOINT = exports.TRACES_PATH = exports.DEFAULT_API_ENDPOINT = void 0; | ||
exports.getSampleRate = exports.getTracesApiKey = exports.getTracesEndpoint = exports.createHoneycombSDKLogMessage = exports.defaultOptions = exports.DEFAULT_SAMPLE_RATE = exports.DEFAULT_SERVICE_NAME = exports.DEFAULT_TRACES_ENDPOINT = exports.TRACES_PATH = exports.DEFAULT_API_ENDPOINT = void 0; | ||
exports.isClassic = isClassic; | ||
exports.maybeAppendTracesPath = maybeAppendTracesPath; | ||
// Constants | ||
@@ -49,3 +51,2 @@ exports.DEFAULT_API_ENDPOINT = 'https://api.honeycomb.io'; | ||
} | ||
exports.isClassic = isClassic; | ||
/** | ||
@@ -64,3 +65,2 @@ * Checks for and appends v1/traces to provided URL if missing when using an HTTP | ||
} | ||
exports.maybeAppendTracesPath = maybeAppendTracesPath; | ||
const getTracesEndpoint = (options) => { | ||
@@ -67,0 +67,0 @@ // use `tracesEndpoint` option unchanged if provided |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.3.0"; | ||
export declare const VERSION = "0.4.0"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.3.0'; | ||
exports.VERSION = '0.4.0'; |
@@ -31,3 +31,3 @@ import { CLSMetricWithAttribution, FCPMetricWithAttribution, FIDMetricWithAttribution, INPMetricWithAttribution, LCPMetricWithAttribution, Metric, ReportOpts, TTFBMetricWithAttribution } from 'web-vitals/attribution'; | ||
protected _massWrap: <Nodule extends object, FieldName extends keyof Nodule>(nodules: Nodule[], names: FieldName[], wrapper: (original: Nodule[FieldName]) => Nodule[FieldName]) => void; | ||
protected _massUnwrap: <Nodule extends object>(nodules: Nodule[], names: (keyof Nodule)[]) => void; | ||
protected _massUnwrap: <Nodule extends object>(nodules: Nodule[], names: Array<keyof Nodule>) => void; | ||
protected get meter(): Meter; | ||
@@ -34,0 +34,0 @@ /** |
{ | ||
"name": "@honeycombio/opentelemetry-web", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Honeycomb OpenTelemetry Wrapper for Browser Applications", | ||
@@ -45,11 +45,11 @@ "main": "./dist/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/api": "~1.8.0", | ||
"@opentelemetry/core": "~1.24.0", | ||
"@opentelemetry/exporter-trace-otlp-http": "~0.51.0", | ||
"@opentelemetry/instrumentation": "~0.51.0", | ||
"@opentelemetry/opentelemetry-browser-detector": "~0.51.0", | ||
"@opentelemetry/resources": "~1.24.0", | ||
"@opentelemetry/sdk-trace-base": "~1.24.0", | ||
"@opentelemetry/sdk-trace-web": "~1.24.0", | ||
"@opentelemetry/semantic-conventions": "~1.24.0", | ||
"@opentelemetry/api": "~1.9.0", | ||
"@opentelemetry/core": "~1.25.1", | ||
"@opentelemetry/exporter-trace-otlp-http": "~0.52.1", | ||
"@opentelemetry/instrumentation": "~0.52.1", | ||
"@opentelemetry/opentelemetry-browser-detector": "~0.52.1", | ||
"@opentelemetry/resources": "~1.25.1", | ||
"@opentelemetry/sdk-trace-base": "~1.25.1", | ||
"@opentelemetry/sdk-trace-web": "~1.25.1", | ||
"@opentelemetry/semantic-conventions": "~1.25.1", | ||
"shimmer": "^1.2.1", | ||
@@ -56,0 +56,0 @@ "ua-parser-js": "^1.0.37", |
@@ -14,3 +14,3 @@ # Honeycomb OpenTelemetry Web | ||
* built with OpenTelemetry JS [Stable v1.24.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v1.24.0), [Experimental v0.51.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/experimental%2Fv0.51.0), [API v1.8.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/api%2Fv1.8.0) | ||
* built with OpenTelemetry JS [Stable v1.25.1](https://github.com/open-telemetry/opentelemetry-js/releases/tag/v1.25.1), [Experimental v0.52.1](https://github.com/open-telemetry/opentelemetry-js/releases/tag/experimental%2Fv0.52.1), [API v1.9.0](https://github.com/open-telemetry/opentelemetry-js/releases/tag/api%2Fv1.9.0) | ||
* compatible with OpenTelemetry Auto-Instrumentations for Web [~0.39.0](https://github.com/open-telemetry/opentelemetry-js-contrib/releases/tag/auto-instrumentations-web-v0.39.0) | ||
@@ -17,0 +17,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107358
1677
+ Added@opentelemetry/api@1.9.0(transitive)
+ Added@opentelemetry/api-logs@0.52.1(transitive)
+ Added@opentelemetry/core@1.25.1(transitive)
+ Added@opentelemetry/exporter-trace-otlp-http@0.52.1(transitive)
+ Added@opentelemetry/instrumentation@0.52.1(transitive)
+ Added@opentelemetry/opentelemetry-browser-detector@0.52.1(transitive)
+ Added@opentelemetry/otlp-exporter-base@0.52.1(transitive)
+ Added@opentelemetry/otlp-transformer@0.52.1(transitive)
+ Added@opentelemetry/resources@1.25.1(transitive)
+ Added@opentelemetry/sdk-logs@0.52.1(transitive)
+ Added@opentelemetry/sdk-metrics@1.25.1(transitive)
+ Added@opentelemetry/sdk-trace-base@1.25.1(transitive)
+ Added@opentelemetry/sdk-trace-web@1.25.1(transitive)
+ Added@opentelemetry/semantic-conventions@1.25.1(transitive)
+ Added@protobufjs/aspromise@1.1.2(transitive)
+ Added@protobufjs/base64@1.1.2(transitive)
+ Added@protobufjs/codegen@2.0.4(transitive)
+ Added@protobufjs/eventemitter@1.1.0(transitive)
+ Added@protobufjs/fetch@1.1.0(transitive)
+ Added@protobufjs/float@1.0.2(transitive)
+ Added@protobufjs/inquire@1.1.0(transitive)
+ Added@protobufjs/path@1.1.2(transitive)
+ Added@protobufjs/pool@1.1.0(transitive)
+ Added@protobufjs/utf8@1.1.0(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedimport-in-the-middle@1.11.2(transitive)
+ Addedlong@5.2.3(transitive)
+ Addedprotobufjs@7.4.0(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@opentelemetry/api@1.8.0(transitive)
- Removed@opentelemetry/api-logs@0.51.1(transitive)
- Removed@opentelemetry/core@1.24.1(transitive)
- Removed@opentelemetry/exporter-trace-otlp-http@0.51.1(transitive)
- Removed@opentelemetry/instrumentation@0.51.1(transitive)
- Removed@opentelemetry/opentelemetry-browser-detector@0.51.1(transitive)
- Removed@opentelemetry/otlp-exporter-base@0.51.1(transitive)
- Removed@opentelemetry/otlp-transformer@0.51.1(transitive)
- Removed@opentelemetry/resources@1.24.1(transitive)
- Removed@opentelemetry/sdk-logs@0.51.1(transitive)
- Removed@opentelemetry/sdk-metrics@1.24.1(transitive)
- Removed@opentelemetry/sdk-trace-base@1.24.1(transitive)
- Removed@opentelemetry/sdk-trace-web@1.24.1(transitive)
- Removed@opentelemetry/semantic-conventions@1.24.1(transitive)
- Removedimport-in-the-middle@1.7.4(transitive)
Updated@opentelemetry/api@~1.9.0
Updated@opentelemetry/core@~1.25.1
Updated@opentelemetry/opentelemetry-browser-detector@~0.52.1