Benign npm Download

@opentelemetry/propagation-utils 0.31.20

“Propagation utilities for opentelemetry instrumentations”

Package release management scripts (pre/post)OpenTelemetry Authors copyright header
SHA-256babbc2ccb5718cf24cbc71671cb283eb0d1aee18c7fadbc0ae166c8542a92cf4

Evidence

Package.json declares a files allowlist package.json · lines 1–48
1{
2 "name": "@opentelemetry/propagation-utils",
3 "version": "0.31.20",
4 "description": "Propagation utilities for opentelemetry instrumentations",
5 "main": "build/src/index.js",
6 "types": "build/src/index.d.ts",
7 "publishConfig": {
8 "access": "public"
9 },
10 "scripts": {
11 "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
12 "compile": "tsc --build tsconfig.json tsconfig.esm.json",
13 "compile:with-dependencies": "nx run-many -t compile -p @opentelemetry/propagation-utils",
14 "prepublishOnly": "npm run compile",
15 "tdd": "npm run test -- --watch-extensions ts --watch",
16 "test": "nyc mocha 'test/**/*.test.ts'",
17 "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
18 },
19 "repository": {
20 "type": "git",
21 "url": "https://github.com/open-telemetry/opentelemetry-js-contrib.git",
22 "directory": "packages/propagation-utils"
23 },
24 "keywords": [
25 "tracing",
26 "instrumentation"
27 ],
28 "files": [
29 "build/**/*.js",
30 "build/**/*.js.map",
⋯8 lines
39 "url": "https://github.com/open-telemetry/opentelemetry-js-contrib/issues"
40 },
41 "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/propagation-utils#readme",
42 "peerDependencies": {
43 "@opentelemetry/api": "^1.0.0"
⋯5 lines
OpenTelemetry Authors copyright header index.js · lines 1–6
1/*
2 * Copyright The OpenTelemetry Authors
3 * SPDX-License-Identifier: Apache-2.0
4 */
5export { default as pubsubPropagation } from './pubsub-propagation';
6//# sourceMappingURL=index.js.map
OpenTelemetry Authors copyright header pubsub-propagation.js · lines 1–7
1/*
2 * Copyright The OpenTelemetry Authors
3 * SPDX-License-Identifier: Apache-2.0
4 */
5import { SpanKind, context, trace, diag, } from '@opentelemetry/api';
6const START_SPAN_FUNCTION = Symbol('opentelemetry.pubsub-propagation.start_span');
7const END_SPAN_FUNCTION = Symbol('opentelemetry …
afterEach hook pubsub-propagation.test.js · lines 1–19
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/*
4 * Copyright The OpenTelemetry Authors
5 * SPDX-License-Identifier: Apache-2.0
6 */
7const pubsub_propagation_1 = require("../src/pubsub-propagation");
8const contrib_test_utils_1 = require("@opentelemetry/contrib-test-utils");
9const api_1 = require("@opentelemetry/api");
10const expect_1 = require("expect");
11(0, contrib_test_utils_1.registerInstrumentationTestingProvider)();
12const tracer = api_1.trace.getTracer('test');
13afterEach(() => {
14 (0, contrib_test_utils_1.resetMemoryExporter)();
15});
16describe('Pubsub propagation', () => {
17 it('Span ends immediately when the function returns a non-promise', () => {
18 const messages = [{}];
19 pubsub_propagatio …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.