Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@honeycombio/opentelemetry-web

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honeycombio/opentelemetry-web - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

4

dist/src/browser-attributes-resource.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc