diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md
index 4e5ced7aab2..6ee96219a92 100644
--- a/experimental/CHANGELOG.md
+++ b/experimental/CHANGELOG.md
@@ -15,6 +15,7 @@ All notable changes to experimental packages in this project will be documented
### :rocket: (Enhancement)
* feat: support node 22 [#4666](https://github.com/open-telemetry/opentelemetry-js/pull/4666) @dyladan
+* feat(propagator-aws-xray-lambda): add AWS Xray Lambda propagator [4554](https://github.com/open-telemetry/opentelemetry-js/pull/4554)
### :bug: (Bug Fix)
diff --git a/experimental/packages/propagator-aws-xray-lambda/.eslintignore b/experimental/packages/propagator-aws-xray-lambda/.eslintignore
new file mode 100644
index 00000000000..378eac25d31
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/.eslintignore
@@ -0,0 +1 @@
+build
diff --git a/experimental/packages/propagator-aws-xray-lambda/.eslintrc.js b/experimental/packages/propagator-aws-xray-lambda/.eslintrc.js
new file mode 100644
index 00000000000..9baf1b49565
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/.eslintrc.js
@@ -0,0 +1,7 @@
+module.exports = {
+ "env": {
+ "mocha": true,
+ "node": true
+ },
+ ...require('../../../eslint.base.js')
+}
diff --git a/experimental/packages/propagator-aws-xray-lambda/.npmignore b/experimental/packages/propagator-aws-xray-lambda/.npmignore
new file mode 100644
index 00000000000..9505ba9450f
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/.npmignore
@@ -0,0 +1,4 @@
+/bin
+/coverage
+/doc
+/test
diff --git a/experimental/packages/propagator-aws-xray-lambda/LICENSE b/experimental/packages/propagator-aws-xray-lambda/LICENSE
new file mode 100644
index 00000000000..261eeb9e9f8
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/experimental/packages/propagator-aws-xray-lambda/README.md b/experimental/packages/propagator-aws-xray-lambda/README.md
new file mode 100644
index 00000000000..91bdcaf6a7b
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/README.md
@@ -0,0 +1,35 @@
+# OpenTelemetry Propagator AWS X-Ray-Lambda
+
+[![NPM Published Version][npm-img]][npm-url]
+[![Apache License][license-image]][license-image]
+
+**Note: This is an experimental package under active development. New releases may include breaking changes.**
+
+The OpenTelemetry Propagator for AWS X-Ray Lambda provides propagation based on the X-Ray `_X_AMZN_TRACE_ID` environment
+variable in addition to the AWS X-Ray HTTP headers. This propagator should be used only for an AWS Lambda instrumentation.
+
+## Usage
+
+The preferred method for using this propagator is by using the `OTEL_PROPAGATORS` environment variable. For more details,
+see the [semantic conventions specification for AWS Lambda](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/aws-lambda.md).
+
+## Propagator Details
+
+The propagator extracts context from the `_X_AMZN_TRACE_ID` environment variable, except when there is already another
+context active. It also automatically uses the [AWS X-Ray propagator](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/propagators/opentelemetry-propagator-aws-xray).
+
+## Useful links
+
+* For more information on OpenTelemetry, visit:
+* For more about OpenTelemetry JavaScript:
+* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
+
+## License
+
+Apache 2.0 - See [LICENSE][license-url] for more information.
+
+[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
+[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE
+[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
+[npm-url]: https://www.npmjs.com/package/@opentelemetry/propagator-aws-xray
+[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fpropagator-aws-xray.svg
diff --git a/experimental/packages/propagator-aws-xray-lambda/package.json b/experimental/packages/propagator-aws-xray-lambda/package.json
new file mode 100644
index 00000000000..6a30c31d918
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/package.json
@@ -0,0 +1,68 @@
+{
+ "name": "@opentelemetry/propagator-aws-xray-lambda",
+ "version": "0.51.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",
+ "repository": "open-telemetry/opentelemetry-js",
+ "scripts": {
+ "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/propagator-aws-xray-lambda --include-dependencies",
+ "prewatch": "npm run precompile",
+ "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",
+ "lint": "eslint . --ext .ts",
+ "lint:fix": "eslint . --ext .ts --fix",
+ "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
+ "prepublishOnly": "npm run compile"
+ },
+ "keywords": [
+ "opentelemetry",
+ "nodejs",
+ "tracing",
+ "awsxray"
+ ],
+ "author": "OpenTelemetry Authors",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=14"
+ },
+ "files": [
+ "build/esm/**/*.js",
+ "build/esm/**/*.js.map",
+ "build/esm/**/*.d.ts",
+ "build/src/**/*.js",
+ "build/src/**/*.js.map",
+ "build/src/**/*.d.ts"
+ ],
+ "publishConfig": {
+ "access": "public"
+ },
+ "peerDependencies": {
+ "@opentelemetry/api": ">=1.3.0 <1.9.0"
+ },
+ "devDependencies": {
+ "@babel/core": "7.23.6",
+ "@babel/preset-env": "7.22.20",
+ "@opentelemetry/api": "1.8.0",
+ "@types/mocha": "10.0.6",
+ "@types/node": "18.6.5",
+ "@types/sinon": "10.0.20",
+ "babel-loader": "8.3.0",
+ "babel-plugin-istanbul": "6.1.1",
+ "codecov": "3.8.3",
+ "cross-var": "1.1.0",
+ "lerna": "6.6.2",
+ "mocha": "10.2.0",
+ "nyc": "15.1.0",
+ "sinon": "15.1.2",
+ "ts-loader": "8.4.0",
+ "ts-mocha": "10.0.0",
+ "typescript": "4.4.4"
+ },
+ "dependencies": {
+ "@opentelemetry/propagator-aws-xray": "1.24.0"
+ },
+ "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/propagator-aws-xray-lambda#readme"
+}
diff --git a/experimental/packages/propagator-aws-xray-lambda/src/AWSXRayLambdaPropagator.ts b/experimental/packages/propagator-aws-xray-lambda/src/AWSXRayLambdaPropagator.ts
new file mode 100644
index 00000000000..51d7ca48891
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/src/AWSXRayLambdaPropagator.ts
@@ -0,0 +1,74 @@
+/*
+ * Copyright The OpenTelemetry Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {
+ Context,
+ TextMapPropagator,
+ TextMapSetter,
+ TextMapGetter,
+ isSpanContextValid,
+ defaultTextMapGetter,
+ trace,
+} from '@opentelemetry/api';
+import {
+ AWSXRayPropagator,
+ AWSXRAY_TRACE_ID_HEADER,
+} from '@opentelemetry/propagator-aws-xray';
+
+export const AWSXRAY_TRACE_ID_ENV_VAR = '_X_AMZN_TRACE_ID';
+
+/**
+ * Implementation of the AWS X-Ray Trace Header propagation protocol with special
+ * logic for handling Lambda X-ray environment variable.
+ *
+ * An example AWS Xray Tracing Header is shown below:
+ * X-Amzn-Trace-Id: Root=1-5759e988-bd862e3fe1be46a994272793;Parent=53995c3f42cd8ad8;Sampled=1
+ */
+export class AWSXRayLambdaPropagator implements TextMapPropagator {
+ private _awsXrayPropagator = new AWSXRayPropagator();
+
+ inject(context: Context, carrier: unknown, setter: TextMapSetter) {
+ this._awsXrayPropagator.inject(context, carrier, setter);
+ }
+
+ extract(context: Context, carrier: unknown, getter: TextMapGetter): Context {
+ const xrayContext = this._awsXrayPropagator.extract(
+ context,
+ carrier,
+ getter
+ );
+
+ const spanContext = trace.getSpanContext(context);
+ if (spanContext && isSpanContextValid(spanContext)) {
+ return xrayContext;
+ }
+
+ const xrayEnvVar = process.env[AWSXRAY_TRACE_ID_ENV_VAR];
+ if (!xrayEnvVar) {
+ return xrayContext;
+ }
+
+ return this._awsXrayPropagator.extract(
+ xrayContext,
+ { [AWSXRAY_TRACE_ID_HEADER]: xrayEnvVar },
+ defaultTextMapGetter
+ );
+ }
+
+ fields(): string[] {
+ return this._awsXrayPropagator.fields();
+ }
+}
diff --git a/experimental/packages/propagator-aws-xray-lambda/src/index.ts b/experimental/packages/propagator-aws-xray-lambda/src/index.ts
new file mode 100644
index 00000000000..0841580d074
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/src/index.ts
@@ -0,0 +1,17 @@
+/*
+ * Copyright The OpenTelemetry Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export { AWSXRayLambdaPropagator } from './AWSXRayLambdaPropagator';
diff --git a/experimental/packages/propagator-aws-xray-lambda/test/AWSXRayLambdaPropagator.test.ts b/experimental/packages/propagator-aws-xray-lambda/test/AWSXRayLambdaPropagator.test.ts
new file mode 100644
index 00000000000..23f01482c70
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/test/AWSXRayLambdaPropagator.test.ts
@@ -0,0 +1,207 @@
+/*
+ * Copyright The OpenTelemetry Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import * as assert from 'assert';
+
+import {
+ defaultTextMapGetter,
+ defaultTextMapSetter,
+ ROOT_CONTEXT,
+ SpanContext,
+ TraceFlags,
+ trace,
+ context,
+} from '@opentelemetry/api';
+import * as sinon from 'sinon';
+
+import { AWSXRayLambdaPropagator } from '../src';
+import { AWSXRAY_TRACE_ID_ENV_VAR } from '../src/AWSXRayLambdaPropagator';
+import {
+ AWSXRAY_TRACE_ID_HEADER,
+ AWSXRayPropagator,
+} from '@opentelemetry/propagator-aws-xray';
+
+describe('AWSXRayPropagator', () => {
+ const xrayLambdaPropagator = new AWSXRayLambdaPropagator();
+
+ let carrier: { [key: string]: unknown };
+
+ beforeEach(() => {
+ carrier = {};
+ });
+
+ describe('.inject()', () => {
+ it('should use AWSXRayPropagator inject()', () => {
+ const spy = sinon.spy(AWSXRayPropagator.prototype, 'inject');
+ assert.equal(spy.callCount, 0);
+ xrayLambdaPropagator.inject(
+ context.active(),
+ carrier,
+ defaultTextMapSetter
+ );
+ sinon.assert.calledOnceWithExactly(
+ spy,
+ context.active(),
+ carrier,
+ defaultTextMapSetter
+ );
+ });
+ });
+
+ describe('.extract()', () => {
+ it('should extract context from the _X_AMZN_TRACE_ID env variable', () => {
+ const xrayEnvSpanId = '53995c3f42cd8ad8';
+ const xrayEnvTraceId = '8a3c60f7d188f8fa79d48a391a778fa6';
+ process.env[AWSXRAY_TRACE_ID_ENV_VAR] =
+ 'Root=1-8a3c60f7-d188f8fa79d48a391a778fa6;Parent=53995c3f42cd8ad8;Sampled=1';
+ const extractedSpanContext = trace
+ .getSpan(
+ xrayLambdaPropagator.extract(
+ ROOT_CONTEXT,
+ carrier,
+ defaultTextMapGetter
+ )
+ )
+ ?.spanContext();
+
+ assert.deepStrictEqual(extractedSpanContext, {
+ traceId: xrayEnvTraceId,
+ spanId: xrayEnvSpanId,
+ isRemote: true,
+ traceFlags: TraceFlags.SAMPLED,
+ });
+ });
+
+ it('should return current context if one exists', () => {
+ const traceId = 'fd14414f1e61351035c43863714b4aa8';
+ const spanId = '81e77faacf9f61f3';
+ const existingContext: SpanContext = {
+ traceId: traceId,
+ spanId: spanId,
+ traceFlags: TraceFlags.SAMPLED,
+ isRemote: true,
+ };
+ const ctx = trace.setSpanContext(context.active(), existingContext);
+
+ process.env[AWSXRAY_TRACE_ID_ENV_VAR] =
+ 'Root=1-8a3c60f7-d188f8fa79d48a391a778fa6;Parent=53995c3f42cd8ad8;Sampled=1';
+
+ const extractedSpanContext = trace
+ .getSpan(
+ xrayLambdaPropagator.extract(ctx, carrier, defaultTextMapGetter)
+ )
+ ?.spanContext();
+
+ assert.deepStrictEqual(extractedSpanContext, {
+ traceId: traceId,
+ spanId: spanId,
+ isRemote: true,
+ traceFlags: TraceFlags.SAMPLED,
+ });
+ });
+
+ it('should return X-ray context from carrier when there is an existing context', () => {
+ const traceId = 'fd14414f1e61351035c43863714b4aa8';
+ const spanId = '81e77faacf9f61f3';
+ const existingContext: SpanContext = {
+ traceId: traceId,
+ spanId: spanId,
+ traceFlags: TraceFlags.SAMPLED,
+ isRemote: true,
+ };
+ const ctx = trace.setSpanContext(context.active(), existingContext);
+
+ process.env[AWSXRAY_TRACE_ID_ENV_VAR] =
+ 'Root=1-8a3c60f7-d188f8fa79d48a391a778fa6;Parent=53995c3f42cd8ad8;Sampled=1';
+
+ const xrayHeaderSpanId = '4635c8688f46eb5d';
+ const xrayHeaderTraceId = '48165d1ad6255f4cb1ddf9999ef6d536';
+ carrier[AWSXRAY_TRACE_ID_HEADER] =
+ 'Root=1-48165d1a-d6255f4cb1ddf9999ef6d536;Parent=4635c8688f46eb5d;Sampled=1';
+
+ const extractedSpanContext = trace
+ .getSpan(
+ xrayLambdaPropagator.extract(ctx, carrier, defaultTextMapGetter)
+ )
+ ?.spanContext();
+
+ assert.deepStrictEqual(extractedSpanContext, {
+ traceId: xrayHeaderTraceId,
+ spanId: xrayHeaderSpanId,
+ isRemote: true,
+ traceFlags: TraceFlags.SAMPLED,
+ });
+ });
+
+ it('should return env variable context if there is no active context but carrier also has xray headers', () => {
+ const xrayEnvSpanId = '53995c3f42cd8ad8';
+ const xrayEnvTraceId = '8a3c60f7d188f8fa79d48a391a778fa6';
+ process.env[AWSXRAY_TRACE_ID_ENV_VAR] =
+ 'Root=1-8a3c60f7-d188f8fa79d48a391a778fa6;Parent=53995c3f42cd8ad8;Sampled=1';
+
+ carrier[AWSXRAY_TRACE_ID_HEADER] =
+ 'Root=1-48165d1a-d6255f4cb1ddf9999ef6d536;Parent=4635c8688f46eb5d;Sampled=1';
+
+ const extractedSpanContext = trace
+ .getSpan(
+ xrayLambdaPropagator.extract(
+ context.active(),
+ carrier,
+ defaultTextMapGetter
+ )
+ )
+ ?.spanContext();
+
+ assert.deepStrictEqual(extractedSpanContext, {
+ traceId: xrayEnvTraceId,
+ spanId: xrayEnvSpanId,
+ isRemote: true,
+ traceFlags: TraceFlags.SAMPLED,
+ });
+ });
+
+ it('should return current context if one exists', () => {
+ delete process.env[AWSXRAY_TRACE_ID_ENV_VAR];
+
+ const xrayHeaderSpanId = '53995c3f42cd8ad8';
+ const xrayHeaderTraceId = '8a3c60f7d188f8fa79d48a391a778fa6';
+ carrier[AWSXRAY_TRACE_ID_HEADER] =
+ 'Root=1-8a3c60f7-d188f8fa79d48a391a778fa6;Parent=53995c3f42cd8ad8;Sampled=1';
+ const extractedSpanContext = trace
+ .getSpan(
+ xrayLambdaPropagator.extract(
+ ROOT_CONTEXT,
+ carrier,
+ defaultTextMapGetter
+ )
+ )
+ ?.spanContext();
+
+ assert.deepStrictEqual(extractedSpanContext, {
+ traceId: xrayHeaderTraceId,
+ spanId: xrayHeaderSpanId,
+ isRemote: true,
+ traceFlags: TraceFlags.SAMPLED,
+ });
+ });
+ });
+
+ describe('.fields()', () => {
+ it('should return a field with AWS X-Ray Trace ID header', () => {
+ const actualFields = xrayLambdaPropagator.fields();
+ assert.deepStrictEqual([AWSXRAY_TRACE_ID_HEADER], actualFields);
+ });
+ });
+});
diff --git a/experimental/packages/propagator-aws-xray-lambda/test/index-webpack.ts b/experimental/packages/propagator-aws-xray-lambda/test/index-webpack.ts
new file mode 100644
index 00000000000..061a48ccfa7
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/test/index-webpack.ts
@@ -0,0 +1,20 @@
+/*
+ * Copyright The OpenTelemetry Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+const testsContext = require.context('.', true, /test$/);
+testsContext.keys().forEach(testsContext);
+
+const srcContext = require.context('.', true, /src$/);
+srcContext.keys().forEach(srcContext);
diff --git a/experimental/packages/propagator-aws-xray-lambda/tsconfig.esm.json b/experimental/packages/propagator-aws-xray-lambda/tsconfig.esm.json
new file mode 100644
index 00000000000..ed538d42992
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/tsconfig.esm.json
@@ -0,0 +1,19 @@
+{
+ "extends": "../../../tsconfig.base.esm.json",
+ "compilerOptions": {
+ "outDir": "build/esm",
+ "rootDir": "src",
+ "tsBuildInfoFile": "build/esm/tsconfig.esm.tsbuildinfo"
+ },
+ "include": [
+ "src/**/*.ts"
+ ],
+ "references": [
+ {
+ "path": "../../../api"
+ },
+ {
+ "path": "../../../packages/propagator-aws-xray"
+ }
+ ]
+}
diff --git a/experimental/packages/propagator-aws-xray-lambda/tsconfig.esnext.json b/experimental/packages/propagator-aws-xray-lambda/tsconfig.esnext.json
new file mode 100644
index 00000000000..2eb63c9fd9d
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/tsconfig.esnext.json
@@ -0,0 +1,19 @@
+{
+ "extends": "../../../tsconfig.base.esnext.json",
+ "compilerOptions": {
+ "outDir": "build/esnext",
+ "rootDir": "src",
+ "tsBuildInfoFile": "build/esnext/tsconfig.esnext.tsbuildinfo"
+ },
+ "include": [
+ "src/**/*.ts"
+ ],
+ "references": [
+ {
+ "path": "../../../api"
+ },
+ {
+ "path": "../../../packages/propagator-aws-xray"
+ }
+ ]
+}
diff --git a/experimental/packages/propagator-aws-xray-lambda/tsconfig.json b/experimental/packages/propagator-aws-xray-lambda/tsconfig.json
new file mode 100644
index 00000000000..48c9ac9c8ab
--- /dev/null
+++ b/experimental/packages/propagator-aws-xray-lambda/tsconfig.json
@@ -0,0 +1,19 @@
+{
+ "extends": "../../../tsconfig.base.json",
+ "compilerOptions": {
+ "outDir": "build",
+ "rootDir": "."
+ },
+ "include": [
+ "src/**/*.ts",
+ "test/**/*.ts"
+ ],
+ "references": [
+ {
+ "path": "../../../api"
+ },
+ {
+ "path": "../../../packages/propagator-aws-xray"
+ }
+ ]
+}
diff --git a/package-lock.json b/package-lock.json
index 8321a3c57da..24f328c0181 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5959,6 +5959,211 @@
}
}
},
+ "experimental/packages/propagator-aws-xray-lambda": {
+ "version": "0.51.0",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@opentelemetry/propagator-aws-xray": "1.24.0"
+ },
+ "devDependencies": {
+ "@babel/core": "7.23.6",
+ "@babel/preset-env": "7.22.20",
+ "@opentelemetry/api": "1.8.0",
+ "@types/mocha": "10.0.6",
+ "@types/node": "18.6.5",
+ "@types/sinon": "10.0.20",
+ "babel-loader": "8.3.0",
+ "babel-plugin-istanbul": "6.1.1",
+ "codecov": "3.8.3",
+ "cross-var": "1.1.0",
+ "lerna": "6.6.2",
+ "mocha": "10.2.0",
+ "nyc": "15.1.0",
+ "sinon": "15.1.2",
+ "ts-loader": "8.4.0",
+ "ts-mocha": "10.0.0",
+ "typescript": "4.4.4"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "@opentelemetry/api": ">=1.3.0 <1.9.0"
+ }
+ },
+ "experimental/packages/propagator-aws-xray-lambda/node_modules/@babel/core": {
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz",
+ "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==",
+ "dev": true,
+ "dependencies": {
+ "@ampproject/remapping": "^2.2.0",
+ "@babel/code-frame": "^7.23.5",
+ "@babel/generator": "^7.23.6",
+ "@babel/helper-compilation-targets": "^7.23.6",
+ "@babel/helper-module-transforms": "^7.23.3",
+ "@babel/helpers": "^7.23.6",
+ "@babel/parser": "^7.23.6",
+ "@babel/template": "^7.22.15",
+ "@babel/traverse": "^7.23.6",
+ "@babel/types": "^7.23.6",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "experimental/packages/propagator-aws-xray-lambda/node_modules/@babel/preset-env": {
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.20.tgz",
+ "integrity": "sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg==",
+ "dev": true,
+ "dependencies": {
+ "@babel/compat-data": "^7.22.20",
+ "@babel/helper-compilation-targets": "^7.22.15",
+ "@babel/helper-plugin-utils": "^7.22.5",
+ "@babel/helper-validator-option": "^7.22.15",
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.15",
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.15",
+ "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
+ "@babel/plugin-syntax-import-assertions": "^7.22.5",
+ "@babel/plugin-syntax-import-attributes": "^7.22.5",
+ "@babel/plugin-syntax-import-meta": "^7.10.4",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
+ "@babel/plugin-syntax-top-level-await": "^7.14.5",
+ "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
+ "@babel/plugin-transform-arrow-functions": "^7.22.5",
+ "@babel/plugin-transform-async-generator-functions": "^7.22.15",
+ "@babel/plugin-transform-async-to-generator": "^7.22.5",
+ "@babel/plugin-transform-block-scoped-functions": "^7.22.5",
+ "@babel/plugin-transform-block-scoping": "^7.22.15",
+ "@babel/plugin-transform-class-properties": "^7.22.5",
+ "@babel/plugin-transform-class-static-block": "^7.22.11",
+ "@babel/plugin-transform-classes": "^7.22.15",
+ "@babel/plugin-transform-computed-properties": "^7.22.5",
+ "@babel/plugin-transform-destructuring": "^7.22.15",
+ "@babel/plugin-transform-dotall-regex": "^7.22.5",
+ "@babel/plugin-transform-duplicate-keys": "^7.22.5",
+ "@babel/plugin-transform-dynamic-import": "^7.22.11",
+ "@babel/plugin-transform-exponentiation-operator": "^7.22.5",
+ "@babel/plugin-transform-export-namespace-from": "^7.22.11",
+ "@babel/plugin-transform-for-of": "^7.22.15",
+ "@babel/plugin-transform-function-name": "^7.22.5",
+ "@babel/plugin-transform-json-strings": "^7.22.11",
+ "@babel/plugin-transform-literals": "^7.22.5",
+ "@babel/plugin-transform-logical-assignment-operators": "^7.22.11",
+ "@babel/plugin-transform-member-expression-literals": "^7.22.5",
+ "@babel/plugin-transform-modules-amd": "^7.22.5",
+ "@babel/plugin-transform-modules-commonjs": "^7.22.15",
+ "@babel/plugin-transform-modules-systemjs": "^7.22.11",
+ "@babel/plugin-transform-modules-umd": "^7.22.5",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5",
+ "@babel/plugin-transform-new-target": "^7.22.5",
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
+ "@babel/plugin-transform-numeric-separator": "^7.22.11",
+ "@babel/plugin-transform-object-rest-spread": "^7.22.15",
+ "@babel/plugin-transform-object-super": "^7.22.5",
+ "@babel/plugin-transform-optional-catch-binding": "^7.22.11",
+ "@babel/plugin-transform-optional-chaining": "^7.22.15",
+ "@babel/plugin-transform-parameters": "^7.22.15",
+ "@babel/plugin-transform-private-methods": "^7.22.5",
+ "@babel/plugin-transform-private-property-in-object": "^7.22.11",
+ "@babel/plugin-transform-property-literals": "^7.22.5",
+ "@babel/plugin-transform-regenerator": "^7.22.10",
+ "@babel/plugin-transform-reserved-words": "^7.22.5",
+ "@babel/plugin-transform-shorthand-properties": "^7.22.5",
+ "@babel/plugin-transform-spread": "^7.22.5",
+ "@babel/plugin-transform-sticky-regex": "^7.22.5",
+ "@babel/plugin-transform-template-literals": "^7.22.5",
+ "@babel/plugin-transform-typeof-symbol": "^7.22.5",
+ "@babel/plugin-transform-unicode-escapes": "^7.22.10",
+ "@babel/plugin-transform-unicode-property-regex": "^7.22.5",
+ "@babel/plugin-transform-unicode-regex": "^7.22.5",
+ "@babel/plugin-transform-unicode-sets-regex": "^7.22.5",
+ "@babel/preset-modules": "0.1.6-no-external-plugins",
+ "@babel/types": "^7.22.19",
+ "babel-plugin-polyfill-corejs2": "^0.4.5",
+ "babel-plugin-polyfill-corejs3": "^0.8.3",
+ "babel-plugin-polyfill-regenerator": "^0.5.2",
+ "core-js-compat": "^3.31.0",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "experimental/packages/propagator-aws-xray-lambda/node_modules/mocha": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz",
+ "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==",
+ "dev": true,
+ "dependencies": {
+ "ansi-colors": "4.1.1",
+ "browser-stdout": "1.3.1",
+ "chokidar": "3.5.3",
+ "debug": "4.3.4",
+ "diff": "5.0.0",
+ "escape-string-regexp": "4.0.0",
+ "find-up": "5.0.0",
+ "glob": "7.2.0",
+ "he": "1.2.0",
+ "js-yaml": "4.1.0",
+ "log-symbols": "4.1.0",
+ "minimatch": "5.0.1",
+ "ms": "2.1.3",
+ "nanoid": "3.3.3",
+ "serialize-javascript": "6.0.0",
+ "strip-json-comments": "3.1.1",
+ "supports-color": "8.1.1",
+ "workerpool": "6.2.1",
+ "yargs": "16.2.0",
+ "yargs-parser": "20.2.4",
+ "yargs-unparser": "2.0.0"
+ },
+ "bin": {
+ "_mocha": "bin/_mocha",
+ "mocha": "bin/mocha.js"
+ },
+ "engines": {
+ "node": ">= 14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mochajs"
+ }
+ },
+ "experimental/packages/propagator-aws-xray-lambda/node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
"experimental/packages/sdk-logs": {
"name": "@opentelemetry/sdk-logs",
"version": "0.51.0",
@@ -10970,6 +11175,10 @@
"resolved": "packages/propagator-aws-xray",
"link": true
},
+ "node_modules/@opentelemetry/propagator-aws-xray-lambda": {
+ "resolved": "experimental/packages/propagator-aws-xray-lambda",
+ "link": true
+ },
"node_modules/@opentelemetry/propagator-b3": {
"resolved": "packages/opentelemetry-propagator-b3",
"link": true
@@ -45519,6 +45728,177 @@
}
}
},
+ "@opentelemetry/propagator-aws-xray-lambda": {
+ "version": "file:experimental/packages/propagator-aws-xray-lambda",
+ "requires": {
+ "@babel/core": "7.23.6",
+ "@babel/preset-env": "7.22.20",
+ "@opentelemetry/api": "1.8.0",
+ "@opentelemetry/propagator-aws-xray": "1.24.0",
+ "@types/mocha": "10.0.6",
+ "@types/node": "18.6.5",
+ "@types/sinon": "10.0.20",
+ "babel-loader": "8.3.0",
+ "babel-plugin-istanbul": "6.1.1",
+ "codecov": "3.8.3",
+ "cross-var": "1.1.0",
+ "lerna": "6.6.2",
+ "mocha": "10.2.0",
+ "nyc": "15.1.0",
+ "sinon": "15.1.2",
+ "ts-loader": "8.4.0",
+ "ts-mocha": "10.0.0",
+ "typescript": "4.4.4"
+ },
+ "dependencies": {
+ "@babel/core": {
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz",
+ "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==",
+ "dev": true,
+ "requires": {
+ "@ampproject/remapping": "^2.2.0",
+ "@babel/code-frame": "^7.23.5",
+ "@babel/generator": "^7.23.6",
+ "@babel/helper-compilation-targets": "^7.23.6",
+ "@babel/helper-module-transforms": "^7.23.3",
+ "@babel/helpers": "^7.23.6",
+ "@babel/parser": "^7.23.6",
+ "@babel/template": "^7.22.15",
+ "@babel/traverse": "^7.23.6",
+ "@babel/types": "^7.23.6",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ }
+ },
+ "@babel/preset-env": {
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.20.tgz",
+ "integrity": "sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg==",
+ "dev": true,
+ "requires": {
+ "@babel/compat-data": "^7.22.20",
+ "@babel/helper-compilation-targets": "^7.22.15",
+ "@babel/helper-plugin-utils": "^7.22.5",
+ "@babel/helper-validator-option": "^7.22.15",
+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.22.15",
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.15",
+ "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
+ "@babel/plugin-syntax-async-generators": "^7.8.4",
+ "@babel/plugin-syntax-class-properties": "^7.12.13",
+ "@babel/plugin-syntax-class-static-block": "^7.14.5",
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
+ "@babel/plugin-syntax-import-assertions": "^7.22.5",
+ "@babel/plugin-syntax-import-attributes": "^7.22.5",
+ "@babel/plugin-syntax-import-meta": "^7.10.4",
+ "@babel/plugin-syntax-json-strings": "^7.8.3",
+ "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+ "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+ "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+ "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+ "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+ "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
+ "@babel/plugin-syntax-top-level-await": "^7.14.5",
+ "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
+ "@babel/plugin-transform-arrow-functions": "^7.22.5",
+ "@babel/plugin-transform-async-generator-functions": "^7.22.15",
+ "@babel/plugin-transform-async-to-generator": "^7.22.5",
+ "@babel/plugin-transform-block-scoped-functions": "^7.22.5",
+ "@babel/plugin-transform-block-scoping": "^7.22.15",
+ "@babel/plugin-transform-class-properties": "^7.22.5",
+ "@babel/plugin-transform-class-static-block": "^7.22.11",
+ "@babel/plugin-transform-classes": "^7.22.15",
+ "@babel/plugin-transform-computed-properties": "^7.22.5",
+ "@babel/plugin-transform-destructuring": "^7.22.15",
+ "@babel/plugin-transform-dotall-regex": "^7.22.5",
+ "@babel/plugin-transform-duplicate-keys": "^7.22.5",
+ "@babel/plugin-transform-dynamic-import": "^7.22.11",
+ "@babel/plugin-transform-exponentiation-operator": "^7.22.5",
+ "@babel/plugin-transform-export-namespace-from": "^7.22.11",
+ "@babel/plugin-transform-for-of": "^7.22.15",
+ "@babel/plugin-transform-function-name": "^7.22.5",
+ "@babel/plugin-transform-json-strings": "^7.22.11",
+ "@babel/plugin-transform-literals": "^7.22.5",
+ "@babel/plugin-transform-logical-assignment-operators": "^7.22.11",
+ "@babel/plugin-transform-member-expression-literals": "^7.22.5",
+ "@babel/plugin-transform-modules-amd": "^7.22.5",
+ "@babel/plugin-transform-modules-commonjs": "^7.22.15",
+ "@babel/plugin-transform-modules-systemjs": "^7.22.11",
+ "@babel/plugin-transform-modules-umd": "^7.22.5",
+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5",
+ "@babel/plugin-transform-new-target": "^7.22.5",
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11",
+ "@babel/plugin-transform-numeric-separator": "^7.22.11",
+ "@babel/plugin-transform-object-rest-spread": "^7.22.15",
+ "@babel/plugin-transform-object-super": "^7.22.5",
+ "@babel/plugin-transform-optional-catch-binding": "^7.22.11",
+ "@babel/plugin-transform-optional-chaining": "^7.22.15",
+ "@babel/plugin-transform-parameters": "^7.22.15",
+ "@babel/plugin-transform-private-methods": "^7.22.5",
+ "@babel/plugin-transform-private-property-in-object": "^7.22.11",
+ "@babel/plugin-transform-property-literals": "^7.22.5",
+ "@babel/plugin-transform-regenerator": "^7.22.10",
+ "@babel/plugin-transform-reserved-words": "^7.22.5",
+ "@babel/plugin-transform-shorthand-properties": "^7.22.5",
+ "@babel/plugin-transform-spread": "^7.22.5",
+ "@babel/plugin-transform-sticky-regex": "^7.22.5",
+ "@babel/plugin-transform-template-literals": "^7.22.5",
+ "@babel/plugin-transform-typeof-symbol": "^7.22.5",
+ "@babel/plugin-transform-unicode-escapes": "^7.22.10",
+ "@babel/plugin-transform-unicode-property-regex": "^7.22.5",
+ "@babel/plugin-transform-unicode-regex": "^7.22.5",
+ "@babel/plugin-transform-unicode-sets-regex": "^7.22.5",
+ "@babel/preset-modules": "0.1.6-no-external-plugins",
+ "@babel/types": "^7.22.19",
+ "babel-plugin-polyfill-corejs2": "^0.4.5",
+ "babel-plugin-polyfill-corejs3": "^0.8.3",
+ "babel-plugin-polyfill-regenerator": "^0.5.2",
+ "core-js-compat": "^3.31.0",
+ "semver": "^6.3.1"
+ }
+ },
+ "mocha": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz",
+ "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "4.1.1",
+ "browser-stdout": "1.3.1",
+ "chokidar": "3.5.3",
+ "debug": "4.3.4",
+ "diff": "5.0.0",
+ "escape-string-regexp": "4.0.0",
+ "find-up": "5.0.0",
+ "glob": "7.2.0",
+ "he": "1.2.0",
+ "js-yaml": "4.1.0",
+ "log-symbols": "4.1.0",
+ "minimatch": "5.0.1",
+ "ms": "2.1.3",
+ "nanoid": "3.3.3",
+ "serialize-javascript": "6.0.0",
+ "strip-json-comments": "3.1.1",
+ "supports-color": "8.1.1",
+ "workerpool": "6.2.1",
+ "yargs": "16.2.0",
+ "yargs-parser": "20.2.4",
+ "yargs-unparser": "2.0.0"
+ }
+ },
+ "semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true
+ }
+ }
+ },
"@opentelemetry/propagator-b3": {
"version": "file:packages/opentelemetry-propagator-b3",
"requires": {
diff --git a/tsconfig.esm.json b/tsconfig.esm.json
index 709dfba27e7..5b61f9698cd 100644
--- a/tsconfig.esm.json
+++ b/tsconfig.esm.json
@@ -50,6 +50,9 @@
{
"path": "experimental/packages/otlp-transformer/tsconfig.esm.json"
},
+ {
+ "path": "experimental/packages/propagator-aws-xray-lambda/tsconfig.esm.json"
+ },
{
"path": "experimental/packages/sdk-logs/tsconfig.esm.json"
},
diff --git a/tsconfig.esnext.json b/tsconfig.esnext.json
index 98ff495aa5c..a8540bd0713 100644
--- a/tsconfig.esnext.json
+++ b/tsconfig.esnext.json
@@ -50,6 +50,9 @@
{
"path": "experimental/packages/otlp-transformer/tsconfig.esnext.json"
},
+ {
+ "path": "experimental/packages/propagator-aws-xray-lambda/tsconfig.esnext.json"
+ },
{
"path": "experimental/packages/sdk-logs/tsconfig.esnext.json"
},
diff --git a/tsconfig.json b/tsconfig.json
index 260dccb6f63..a513edfe84a 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -28,6 +28,7 @@
"experimental/packages/otlp-grpc-exporter-base",
"experimental/packages/otlp-proto-exporter-base",
"experimental/packages/otlp-transformer",
+ "experimental/packages/propagator-aws-xray-lambda",
"experimental/packages/sdk-logs",
"experimental/packages/shim-opencensus",
"packages/opentelemetry-context-async-hooks",
@@ -130,6 +131,9 @@
{
"path": "experimental/packages/otlp-transformer"
},
+ {
+ "path": "experimental/packages/propagator-aws-xray-lambda"
+ },
{
"path": "experimental/packages/sdk-logs"
},