Socket
Socket
Sign inDemoInstall

@opentelemetry/propagator-aws-xray

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/propagator-aws-xray - npm Package Compare versions

Comparing version 0.16.0 to 0.20.0

build/esm/AWSXRayPropagator.d.ts

5

build/src/AWSXRayPropagator.js

@@ -44,3 +44,4 @@ "use strict";

inject(context, carrier, setter) {
const spanContext = api_1.getSpanContext(context);
var _a;
const spanContext = (_a = api_1.trace.getSpan(context)) === null || _a === void 0 ? void 0 : _a.spanContext();
if (!spanContext || !api_1.isSpanContextValid(spanContext))

@@ -63,3 +64,3 @@ return;

return context;
return api_1.setSpanContext(context, spanContext);
return api_1.trace.setSpan(context, api_1.trace.wrapSpanContext(spanContext));
}

@@ -66,0 +67,0 @@ fields() {

2

build/src/version.d.ts

@@ -1,2 +0,2 @@

export declare const VERSION = "0.16.0";
export declare const VERSION = "0.20.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.16.0';
exports.VERSION = '0.20.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/propagator-aws-xray",
"version": "0.16.0",
"version": "0.20.0",
"description": "OpenTelemetry AWS Xray propagator provides context propagation for systems that are using AWS X-Ray format.",
"main": "build/src/index.js",
"module": "build/esm/index.js",
"types": "build/src/index.d.ts",

@@ -10,4 +11,4 @@ "repository": "open-telemetry/opentelemetry-js-contrib",

"precompile": "tsc --version",
"compile": "tsc --build",
"clean": "tsc --build --clean",
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts",

@@ -19,3 +20,3 @@ "test:browser": "nyc karma start --single-run",

"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"prepare": "npm run compile"

@@ -36,2 +37,5 @@ },

"files": [
"build/esm/**/*.js",
"build/esm/**/*.js.map",
"build/esm/**/*.d.ts",
"build/src/**/*.js",

@@ -48,6 +52,6 @@ "build/src/**/*.js.map",

"devDependencies": {
"@types/mocha": "8.2.0",
"@types/node": "14.14.12",
"@types/mocha": "8.2.2",
"@types/node": "14.17.2",
"@types/webpack-env": "1.16.0",
"codecov": "3.8.1",
"codecov": "3.8.2",
"gts": "3.1.0",

@@ -64,12 +68,12 @@ "istanbul-instrumenter-loader": "3.0.1",

"rimraf": "3.0.2",
"ts-loader": "8.0.12",
"ts-loader": "8.3.0",
"ts-mocha": "8.0.0",
"typescript": "4.1.3",
"typescript": "4.3.2",
"webpack": "4.46.0"
},
"dependencies": {
"@opentelemetry/api": "^1.0.0-rc.0",
"@opentelemetry/core": "^0.19.0"
"@opentelemetry/api": "^0.20.0",
"@opentelemetry/core": "^0.20.0"
},
"gitHead": "5ecccc916e8f4eecaf6629a0350fc672edcba1be"
"gitHead": "5d73dc2d11a8fd57b21a0c6286861cb992556ca1"
}

@@ -23,10 +23,12 @@ # OpenTelemetry Propagator AWS X-Ray

```js
const { propagation } = require("@opentelemetry/api");
const { NodeTracerProvider } = require('@opentelemetry/node');
const { AWSXRayPropagator } = require('@opentelemetry/propagator-aws-xray');
// ...
module.exports = ("service_name_here") => {
// set global propagator
propagation.setGlobalPropagator(new AWSXRayPropagator());
// ...}
const provider = new NodeTracerProvider();
// Set the global trace context propagator to use X-Ray formatted trace header
provider.register({
propagator: new AWSXRayPropagator()
});
```

@@ -33,0 +35,0 @@

Sorry, the diff of this file is not supported yet

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