From aff48a1f0045c85d0b97d15ea98d03f5909b14bc Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Fri, 23 Feb 2024 02:02:06 -0800 Subject: [PATCH 01/10] fix(instr-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only (#4498) * fix(instr-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only * add a changelog entry * add a diagnostic warning if attempting to use instr-fetch in Node.js * fixup! add a diagnostic warning if attempting to use instr-fetch in Node.js --------- Co-authored-by: Marc Pichler --- experimental/CHANGELOG.md | 1 + .../opentelemetry-instrumentation-fetch/README.md | 3 ++- .../src/fetch.ts | 13 +++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 2442005860..000ef35e3b 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -26,6 +26,7 @@ All notable changes to experimental packages in this project will be documented * fix(instrumentation): normalize paths for internal files in scoped packages [#4467](https://github.com/open-telemetry/opentelemetry-js/pull/4467) @pichlermarc * Fixes a bug where, on Windows, internal files on scoped packages would not be instrumented. * fix(otlp-transformer): only use BigInt inside hrTimeToNanos() [#4484](https://github.com/open-telemetry/opentelemetry-js/pull/4484) @pichlermarc +* fix(instrumentation-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only [#4498](https://github.com/open-telemetry/opentelemetry-js/pull/4498) @trentm ### :books: (Refine Doc) diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/README.md b/experimental/packages/opentelemetry-instrumentation-fetch/README.md index 2b5336be0b..367d5c9ef1 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/README.md +++ b/experimental/packages/opentelemetry-instrumentation-fetch/README.md @@ -5,7 +5,8 @@ **Note: This is an experimental package under active development. New releases may include breaking changes.** -This module provides auto instrumentation for web using fetch. +This module provides auto instrumentation for web using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch). +(Note: This instrumentation does **not** instrument [Node.js' fetch](https://nodejs.org/api/globals.html#fetch). See [this issue](https://github.com/open-telemetry/opentelemetry-js/issues/4333).) ## Installation diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts b/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts index 7960b38535..1f80bfd953 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts +++ b/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts @@ -35,6 +35,8 @@ import { _globalThis } from '@opentelemetry/core'; // safe enough const OBSERVER_WAIT_TIME_MS = 300; +const isNode = typeof process === 'object' && process.release?.name === 'node'; + export interface FetchCustomAttributeFunction { ( span: api.Span, @@ -465,6 +467,14 @@ export class FetchInstrumentation extends InstrumentationBase< * implements enable function */ override enable(): void { + if (isNode) { + // Node.js v18+ *does* have a global `fetch()`, but this package does not + // support instrumenting it. + this._diag.warn( + "this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()" + ); + return; + } if (isWrapped(fetch)) { this._unwrap(_globalThis, 'fetch'); this._diag.debug('removing previous patch for constructor'); @@ -476,6 +486,9 @@ export class FetchInstrumentation extends InstrumentationBase< * implements unpatch function */ override disable(): void { + if (isNode) { + return; + } this._unwrap(_globalThis, 'fetch'); this._usedResources = new WeakSet(); } From 5637e2a91c3ddb471d65684ec30998a4774ffb1f Mon Sep 17 00:00:00 2001 From: Nev <54870357+MSNev@users.noreply.github.com> Date: Fri, 23 Feb 2024 04:00:58 -0800 Subject: [PATCH 02/10] chore: Semantic Conventions export individual strings (#4298) * chore: Semantic Conventions export individual strings * Reduce to just emit full strings and add size-limit test output to review the results * Update generation to use createConstMap for enums where possible * Move changelog back to Unreleased -- merge shifted it --------- Co-authored-by: Marc Pichler --- CHANGELOG.md | 1 + .../test/util/resource-assertions.ts | 20 +- package-lock.json | 1800 +++++++++- .../detectors/browser/EnvDetector.test.ts | 7 +- .../test/resource-assertions.test.ts | 16 +- .../test/util/resource-assertions.ts | 20 +- .../package.json | 8 +- .../src/internal/utils.ts | 35 + .../resource/SemanticResourceAttributes.ts | 1555 ++++++++- .../src/trace/SemanticAttributes.ts | 3073 +++++++++++++++-- .../test/helpers/autoImports.ts | 202 ++ .../test/sizeLimit.test.ts | 318 ++ scripts/semconv/generate.sh | 16 +- .../templates/SemanticAttributes.ts.j2 | 150 +- 14 files changed, 6695 insertions(+), 526 deletions(-) create mode 100644 packages/opentelemetry-semantic-conventions/src/internal/utils.ts create mode 100644 packages/opentelemetry-semantic-conventions/test/helpers/autoImports.ts create mode 100644 packages/opentelemetry-semantic-conventions/test/sizeLimit.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index e3a1497245..8292d5e186 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/ * feat(sdk-metrics): allow single bucket histograms [#4456](https://github.com/open-telemetry/opentelemetry-js/pull/4456) @pichlermarc * feat(instrumentation): Make `init()` method public [#4418](https://github.com/open-telemetry/opentelemetry-js/pull/4418) * feat(context-zone-peer-dep, context-zone): support zone.js 0.13.x, 0.14.x [#4469](https://github.com/open-telemetry/opentelemetry-js/pull/4469) @pichlermarc +* chore: Semantic Conventions export individual strings [4185](https://github.com/open-telemetry/opentelemetry-js/issues/4185) ### :bug: (Bug Fix) diff --git a/experimental/packages/opentelemetry-sdk-node/test/util/resource-assertions.ts b/experimental/packages/opentelemetry-sdk-node/test/util/resource-assertions.ts index bcbdceadc0..80c8c04ecc 100644 --- a/experimental/packages/opentelemetry-sdk-node/test/util/resource-assertions.ts +++ b/experimental/packages/opentelemetry-sdk-node/test/util/resource-assertions.ts @@ -17,7 +17,12 @@ import { SDK_INFO } from '@opentelemetry/core'; import * as assert from 'assert'; import { IResource, Resource } from '@opentelemetry/resources'; -import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'; +import { + SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, + SEMRESATTRS_TELEMETRY_SDK_NAME, + SEMRESATTRS_TELEMETRY_SDK_VERSION, + SemanticResourceAttributes, +} from '@opentelemetry/semantic-conventions'; /** * Test utility method to validate a cloud resource @@ -199,9 +204,9 @@ export const assertTelemetrySDKResource = ( } ) => { const defaults = { - name: SDK_INFO.NAME, - language: SDK_INFO.LANGUAGE, - version: SDK_INFO.VERSION, + name: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME], + language: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE], + version: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION], }; validations = { ...defaults, ...validations }; @@ -317,7 +322,9 @@ const assertHasOneLabel = (prefix: string, resource: Resource): void => { assert.ok( hasOne, - 'Resource must have one of the following attributes: ' + + 'Must have one node Resource(s) starting with [' + + prefix + + '] matching the following attributes: ' + Object.entries(SemanticResourceAttributes) .reduce((result, [key, value]) => { if (key.startsWith(prefix)) { @@ -325,6 +332,7 @@ const assertHasOneLabel = (prefix: string, resource: Resource): void => { } return result; }) - .join(', ') + .join(', ') + + JSON.stringify(Object.keys(SemanticResourceAttributes)) ); }; diff --git a/package-lock.json b/package-lock.json index 07bc80e1db..44dc92b09b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10300,6 +10300,27 @@ "version": "1.1.0", "license": "BSD-3-Clause" }, + "node_modules/@puppeteer/browsers": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.1.tgz", + "integrity": "sha512-PuvK6xZzGhKPvlx3fpfdM2kYY3P/hB1URtK8wA7XUJ6prn6pp22zvJHu48th0SGcHL9SutbPHrFuQgfXTFobWA==", + "dev": true, + "dependencies": { + "debug": "4.3.4", + "extract-zip": "2.0.1", + "progress": "2.0.3", + "proxy-agent": "6.3.1", + "tar-fs": "3.0.4", + "unbzip2-stream": "1.4.3", + "yargs": "17.7.2" + }, + "bin": { + "browsers": "lib/cjs/main-cli.js" + }, + "engines": { + "node": ">=16.3.0" + } + }, "node_modules/@sigstore/bundle": { "version": "1.1.0", "dev": true, @@ -10634,6 +10655,18 @@ "url": "https://github.com/sindresorhus/is?sponsor=1" } }, + "node_modules/@sindresorhus/merge-streams": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-1.0.0.tgz", + "integrity": "sha512-rUV5WyJrJLoloD4NDN1V1+LDMDWOa4OTsT4yYJwQNpTU6FWxkxHpL7eu4w+DmiH8x/EAM1otkPE1+LaspIbplw==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@sinonjs/commons": { "version": "3.0.0", "dev": true, @@ -10673,6 +10706,191 @@ "dev": true, "license": "(Unlicense OR Apache-2.0)" }, + "node_modules/@sitespeed.io/tracium": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@sitespeed.io/tracium/-/tracium-0.3.3.tgz", + "integrity": "sha512-dNZafjM93Y+F+sfwTO5gTpsGXlnc/0Q+c2+62ViqP3gkMWvHEMSKkaEHgVJLcLg3i/g19GSIPziiKpgyne07Bw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@size-limit/file": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@size-limit/file/-/file-11.0.2.tgz", + "integrity": "sha512-874lrMtWYRL+xb/6xzejjwD+krfHTOo+2uFGpZfJScvuNv91Ni2O7k0o09zC70VzCYBGkXquV92ln/H+/ognGg==", + "dev": true, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "size-limit": "11.0.2" + } + }, + "node_modules/@size-limit/time": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@size-limit/time/-/time-11.0.2.tgz", + "integrity": "sha512-5MLgwI6DHpOWTaILE/CnwXp6cHEz6leBkh6od+AyfulAnrWsDzz4XZ4JHu04RJiyAJKPxGVPtSZkTgxmpdlwSQ==", + "dev": true, + "dependencies": { + "estimo": "^3.0.1" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "size-limit": "11.0.2" + } + }, + "node_modules/@size-limit/webpack": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@size-limit/webpack/-/webpack-11.0.2.tgz", + "integrity": "sha512-MWS/KuQWez6UOUveVKhlMSgeduUAIktRFIe6z/x9wiAOEF6tCF9iLVVkzhFen2wbVR0p3sT9eW9WLiulB6yPHg==", + "dev": true, + "dependencies": { + "nanoid": "^5.0.4", + "webpack": "^5.89.0" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "size-limit": "11.0.2" + } + }, + "node_modules/@size-limit/webpack/node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@size-limit/webpack/node_modules/nanoid": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.4.tgz", + "integrity": "sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, + "node_modules/@size-limit/webpack/node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@size-limit/webpack/node_modules/terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/@size-limit/webpack/node_modules/webpack": { + "version": "5.90.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.0.tgz", + "integrity": "sha512-bdmyXRCXeeNIePv6R6tGPyy20aUobw4Zy8r0LUS2EWO+U+Ke/gYDgsCh7bl5rB6jPpr4r0SZa6dPxBxLooDT3w==", + "dev": true, + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.21.10", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/@size-limit/webpack/node_modules/webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/@socket.io/component-emitter": { "version": "3.1.0", "dev": true, @@ -10702,6 +10920,12 @@ "node": ">= 10" } }, + "node_modules/@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "dev": true, @@ -10856,9 +11080,10 @@ } }, "node_modules/@types/estree": { - "version": "1.0.4", - "dev": true, - "license": "MIT" + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true }, "node_modules/@types/express": { "version": "4.17.20", @@ -12342,6 +12567,18 @@ "node": ">=0.10.0" } }, + "node_modules/ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "dev": true, + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/async": { "version": "3.2.4", "dev": true, @@ -12430,6 +12667,12 @@ "proxy-from-env": "^1.1.0" } }, + "node_modules/b4a": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", + "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "dev": true + }, "node_modules/babel-code-frame": { "version": "6.26.0", "dev": true, @@ -13583,6 +13826,15 @@ "node": "^4.5.0 || >= 5.9" } }, + "node_modules/basic-ftp": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.4.tgz", + "integrity": "sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==", + "dev": true, + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/batch": { "version": "0.6.1", "dev": true, @@ -14172,6 +14424,15 @@ "node": ">= 0.8" } }, + "node_modules/bytes-iec": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/bytes-iec/-/bytes-iec-3.1.1.tgz", + "integrity": "sha512-fey6+4jDK7TFtFg/klGSvNKJctyU7n2aQdnM+CO0ruLPbqqMOM8Tio0Pc+deqUeVKX1tL5DQep1zQ7+37aTAsA==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/cacache": { "version": "12.0.4", "dev": true, @@ -14598,6 +14859,19 @@ "node": ">= 6" } }, + "node_modules/chromium-bidi": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.1.tgz", + "integrity": "sha512-dcCqOgq9fHKExc2R4JZs/oKbOghWpUNFAJODS8WKRtLhp3avtIH5UDCBrutdqZdh3pARogH8y1ObXm87emwb3g==", + "dev": true, + "dependencies": { + "mitt": "3.0.1", + "urlpattern-polyfill": "9.0.0" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, "node_modules/ci-info": { "version": "2.0.0", "dev": true, @@ -15547,6 +15821,57 @@ "node": ">= 8" } }, + "node_modules/cross-fetch": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", + "dev": true, + "dependencies": { + "node-fetch": "^2.6.12" + } + }, + "node_modules/cross-fetch/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/cross-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, + "node_modules/cross-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "node_modules/cross-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/cross-spawn": { "version": "5.1.0", "dev": true, @@ -15678,6 +16003,15 @@ "node": ">=0.10" } }, + "node_modules/data-uri-to-buffer": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz", + "integrity": "sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg==", + "dev": true, + "engines": { + "node": ">= 14" + } + }, "node_modules/data-urls": { "version": "3.0.2", "dev": true, @@ -16132,6 +16466,20 @@ "node": ">=0.10.0" } }, + "node_modules/degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "dev": true, + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/del": { "version": "6.1.1", "dev": true, @@ -17298,6 +17646,52 @@ "node": ">=4.0" } }, + "node_modules/estimo": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/estimo/-/estimo-3.0.1.tgz", + "integrity": "sha512-xk0Gln+Ie+rfF3EDfa07wcq1n8u3tT6Hbt9UVAYBb3CMvYVfeljqlX9eJBSklbMhgV2BV3Hpcd22Q4T+jiC0fw==", + "dev": true, + "dependencies": { + "@sitespeed.io/tracium": "^0.3.3", + "commander": "^11.1.0", + "find-chrome-bin": "2.0.1", + "nanoid": "5.0.4", + "puppeteer-core": "21.6.0" + }, + "bin": { + "estimo": "scripts/cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/estimo/node_modules/commander": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "dev": true, + "engines": { + "node": ">=16" + } + }, + "node_modules/estimo/node_modules/nanoid": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.4.tgz", + "integrity": "sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, "node_modules/estraverse": { "version": "4.3.0", "dev": true, @@ -17853,10 +18247,17 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true + }, "node_modules/fast-glob": { - "version": "3.3.1", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, - "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -18144,6 +18545,18 @@ "semver": "bin/semver" } }, + "node_modules/find-chrome-bin": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/find-chrome-bin/-/find-chrome-bin-2.0.1.tgz", + "integrity": "sha512-aDwC2y0dLxt0GFmQ+q8bqBCZ10VW9zYT/lNV806tRDqDAh5XpkTWulB96RKDHDuKu36m/dEvhmhD5IU237oOTg==", + "dev": true, + "dependencies": { + "@puppeteer/browsers": "^1.8.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/find-index": { "version": "0.1.1", "dev": true, @@ -18806,6 +19219,53 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/get-uri": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz", + "integrity": "sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw==", + "dev": true, + "dependencies": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.0", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/get-uri/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/get-uri/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/get-uri/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/get-value": { "version": "2.0.6", "dev": true, @@ -21851,6 +22311,15 @@ "immediate": "~3.0.5" } }, + "node_modules/lilconfig": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz", + "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==", + "dev": true, + "engines": { + "node": ">=14" + } + }, "node_modules/lines-and-columns": { "version": "2.0.3", "dev": true, @@ -23497,6 +23966,12 @@ "xtend": "~4.0.1" } }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true + }, "node_modules/mixin-deep": { "version": "1.3.2", "dev": true, @@ -23520,6 +23995,12 @@ "mkdirp": "bin/cmd.js" } }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "dev": true + }, "node_modules/mkdirp-infer-owner": { "version": "2.0.0", "dev": true, @@ -23967,6 +24448,15 @@ "node": ">=0.10.0" } }, + "node_modules/nanospinner": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nanospinner/-/nanospinner-1.1.0.tgz", + "integrity": "sha512-yFvNYMig4AthKYfHFl1sLj7B2nkHL4lzdig4osvl9/LdGbXwrdFRoqBS98gsEsOakr0yH+r5NZ/1Y9gdVB8trA==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0" + } + }, "node_modules/natural-compare": { "version": "1.4.0", "dev": true, @@ -23989,6 +24479,15 @@ "dev": true, "license": "MIT" }, + "node_modules/netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "dev": true, + "engines": { + "node": ">= 0.4.0" + } + }, "node_modules/nice-napi": { "version": "1.0.2", "dev": true, @@ -26102,6 +26601,97 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/pac-proxy-agent": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.1.tgz", + "integrity": "sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==", + "dev": true, + "dependencies": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.2", + "pac-resolver": "^7.0.0", + "socks-proxy-agent": "^8.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-proxy-agent/node_modules/agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-proxy-agent/node_modules/http-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", + "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-proxy-agent/node_modules/socks-proxy-agent": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.2.tgz", + "integrity": "sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", + "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", + "dev": true, + "dependencies": { + "degenerator": "^5.0.0", + "ip": "^1.1.8", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/pac-resolver/node_modules/ip": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true + }, "node_modules/package-hash": { "version": "4.0.0", "dev": true, @@ -27012,6 +27602,15 @@ "node": ">=8" } }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/prometheus-example": { "resolved": "experimental/examples/prometheus", "link": true @@ -27259,6 +27858,86 @@ "node": ">= 0.10" } }, + "node_modules/proxy-agent": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.1.tgz", + "integrity": "sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.2", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.0.1", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.2" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/http-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "dev": true, + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/https-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", + "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-agent/node_modules/socks-proxy-agent": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.2.tgz", + "integrity": "sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/proxy-from-env": { "version": "1.1.0", "license": "MIT" @@ -27347,6 +28026,50 @@ "dev": true, "license": "MIT" }, + "node_modules/puppeteer-core": { + "version": "21.6.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.6.0.tgz", + "integrity": "sha512-1vrzbp2E1JpBwtIIrriWkN+A0afUxkqRuFTC3uASc5ql6iuK9ppOdIU/CPGKwOyB4YFIQ16mRbK0PK19mbXnaQ==", + "dev": true, + "dependencies": { + "@puppeteer/browsers": "1.9.0", + "chromium-bidi": "0.5.1", + "cross-fetch": "4.0.0", + "debug": "4.3.4", + "devtools-protocol": "0.0.1203626", + "ws": "8.14.2" + }, + "engines": { + "node": ">=16.13.2" + } + }, + "node_modules/puppeteer-core/node_modules/@puppeteer/browsers": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.0.tgz", + "integrity": "sha512-QwguOLy44YBGC8vuPP2nmpX4MUN2FzWbsnvZJtiCzecU3lHmVZkaC1tq6rToi9a200m8RzlVtDyxCS0UIDrxUg==", + "dev": true, + "dependencies": { + "debug": "4.3.4", + "extract-zip": "2.0.1", + "progress": "2.0.3", + "proxy-agent": "6.3.1", + "tar-fs": "3.0.4", + "unbzip2-stream": "1.4.3", + "yargs": "17.7.2" + }, + "bin": { + "browsers": "lib/cjs/main-cli.js" + }, + "engines": { + "node": ">=16.3.0" + } + }, + "node_modules/puppeteer-core/node_modules/devtools-protocol": { + "version": "0.0.1203626", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1203626.tgz", + "integrity": "sha512-nEzHZteIUZfGCZtTiS1fRpC8UZmsfD1SiyPvaUNvS13dvKf666OAm8YTi0+Ca3n1nLEyu49Cy4+dPWpaHFJk9g==", + "dev": true + }, "node_modules/q": { "version": "1.5.1", "dev": true, @@ -27403,6 +28126,12 @@ ], "license": "MIT" }, + "node_modules/queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", + "dev": true + }, "node_modules/quick-lru": { "version": "5.1.1", "dev": true, @@ -29149,6 +29878,156 @@ "node": ">=0.3.1" } }, + "node_modules/size-limit": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/size-limit/-/size-limit-11.0.2.tgz", + "integrity": "sha512-iFZ8iTR/3zPqxSwEIdGnTVYVU0F2nhodLQG/G6zpi/NxECYAK9ntq2lNr+prXH7h3gyBjx2Umt2D/oS2Qzz+eg==", + "dev": true, + "dependencies": { + "bytes-iec": "^3.1.1", + "chokidar": "^3.5.3", + "globby": "^14.0.0", + "lilconfig": "^3.0.0", + "nanospinner": "^1.1.0", + "picocolors": "^1.0.0" + }, + "bin": { + "size-limit": "bin.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + } + }, + "node_modules/size-limit/node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/size-limit/node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/size-limit/node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/size-limit/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/size-limit/node_modules/globby": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-14.0.0.tgz", + "integrity": "sha512-/1WM/LNHRAOH9lZta77uGbq0dAEQM+XjNesWwhlERDVenqothRbnzTrL3/LrIoEPPjeUHC3vrS6TwoyxeHs7MQ==", + "dev": true, + "dependencies": { + "@sindresorhus/merge-streams": "^1.0.0", + "fast-glob": "^3.3.2", + "ignore": "^5.2.4", + "path-type": "^5.0.0", + "slash": "^5.1.0", + "unicorn-magic": "^0.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/size-limit/node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/size-limit/node_modules/path-type": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", + "integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/size-limit/node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/size-limit/node_modules/slash": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", + "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", + "dev": true, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/slash": { "version": "1.0.0", "dev": true, @@ -29818,6 +30697,16 @@ "node": ">= 4.0.0" } }, + "node_modules/streamx": { + "version": "2.15.6", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.6.tgz", + "integrity": "sha512-q+vQL4AAz+FdfT137VF69Cc/APqUbxy+MDOImRrMvchJpigHj9GksgDU2LYbO9rx7RX6osWgxJB2WxhYv4SZAw==", + "dev": true, + "dependencies": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "dev": true, @@ -30062,6 +30951,28 @@ "node": ">= 10" } }, + "node_modules/tar-fs": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", + "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", + "dev": true, + "dependencies": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + } + }, + "node_modules/tar-fs/node_modules/tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", + "dev": true, + "dependencies": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + }, "node_modules/tar-stream": { "version": "2.2.0", "dev": true, @@ -30277,9 +31188,10 @@ } }, "node_modules/terser": { - "version": "5.24.0", + "version": "5.27.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.27.0.tgz", + "integrity": "sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.8.2", @@ -31477,6 +32389,40 @@ "node": ">=0.8.0" } }, + "node_modules/unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "dependencies": { + "buffer": "^5.2.1", + "through": "^2.3.8" + } + }, + "node_modules/unbzip2-stream/node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/underscore": { "version": "1.13.6", "dev": true, @@ -31518,6 +32464,18 @@ "node": ">=4" } }, + "node_modules/unicorn-magic": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", + "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", + "dev": true, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/union-value": { "version": "1.0.1", "dev": true, @@ -31745,6 +32703,12 @@ "fast-url-parser": "^1.1.3" } }, + "node_modules/urlpattern-polyfill": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz", + "integrity": "sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==", + "dev": true + }, "node_modules/use": { "version": "3.1.1", "dev": true, @@ -35162,6 +36126,9 @@ "version": "1.21.0", "license": "Apache-2.0", "devDependencies": { + "@size-limit/file": "^11.0.1", + "@size-limit/time": "^11.0.1", + "@size-limit/webpack": "^11.0.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -35172,13 +36139,76 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", + "size-limit": "^11.0.1", "ts-mocha": "10.0.0", + "ts-node": "10.9.2", "typescript": "4.4.4" }, "engines": { "node": ">=14" } }, + "packages/opentelemetry-semantic-conventions/node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "packages/opentelemetry-semantic-conventions/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "packages/opentelemetry-semantic-conventions/node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, "packages/opentelemetry-shim-opentracing": { "name": "@opentelemetry/shim-opentracing", "version": "1.21.0", @@ -43315,6 +44345,9 @@ "@opentelemetry/semantic-conventions": { "version": "file:packages/opentelemetry-semantic-conventions", "requires": { + "@size-limit/file": "^11.0.1", + "@size-limit/time": "^11.0.1", + "@size-limit/webpack": "^11.0.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -43325,8 +44358,45 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", + "size-limit": "^11.0.1", "ts-mocha": "10.0.0", + "ts-node": "10.9.2", "typescript": "4.4.4" + }, + "dependencies": { + "acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "requires": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + } + } } }, "@opentelemetry/shim-opencensus": { @@ -43518,6 +44588,21 @@ "@protobufjs/utf8": { "version": "1.1.0" }, + "@puppeteer/browsers": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.1.tgz", + "integrity": "sha512-PuvK6xZzGhKPvlx3fpfdM2kYY3P/hB1URtK8wA7XUJ6prn6pp22zvJHu48th0SGcHL9SutbPHrFuQgfXTFobWA==", + "dev": true, + "requires": { + "debug": "4.3.4", + "extract-zip": "2.0.1", + "progress": "2.0.3", + "proxy-agent": "6.3.1", + "tar-fs": "3.0.4", + "unbzip2-stream": "1.4.3", + "yargs": "17.7.2" + } + }, "@sigstore/bundle": { "version": "1.1.0", "dev": true, @@ -43731,6 +44816,12 @@ "version": "4.6.0", "dev": true }, + "@sindresorhus/merge-streams": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-1.0.0.tgz", + "integrity": "sha512-rUV5WyJrJLoloD4NDN1V1+LDMDWOa4OTsT4yYJwQNpTU6FWxkxHpL7eu4w+DmiH8x/EAM1otkPE1+LaspIbplw==", + "dev": true + }, "@sinonjs/commons": { "version": "3.0.0", "dev": true, @@ -43767,6 +44858,116 @@ "version": "0.7.2", "dev": true }, + "@sitespeed.io/tracium": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@sitespeed.io/tracium/-/tracium-0.3.3.tgz", + "integrity": "sha512-dNZafjM93Y+F+sfwTO5gTpsGXlnc/0Q+c2+62ViqP3gkMWvHEMSKkaEHgVJLcLg3i/g19GSIPziiKpgyne07Bw==", + "dev": true, + "requires": { + "debug": "^4.1.1" + } + }, + "@size-limit/file": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@size-limit/file/-/file-11.0.2.tgz", + "integrity": "sha512-874lrMtWYRL+xb/6xzejjwD+krfHTOo+2uFGpZfJScvuNv91Ni2O7k0o09zC70VzCYBGkXquV92ln/H+/ognGg==", + "dev": true, + "requires": {} + }, + "@size-limit/time": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@size-limit/time/-/time-11.0.2.tgz", + "integrity": "sha512-5MLgwI6DHpOWTaILE/CnwXp6cHEz6leBkh6od+AyfulAnrWsDzz4XZ4JHu04RJiyAJKPxGVPtSZkTgxmpdlwSQ==", + "dev": true, + "requires": { + "estimo": "^3.0.1" + } + }, + "@size-limit/webpack": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@size-limit/webpack/-/webpack-11.0.2.tgz", + "integrity": "sha512-MWS/KuQWez6UOUveVKhlMSgeduUAIktRFIe6z/x9wiAOEF6tCF9iLVVkzhFen2wbVR0p3sT9eW9WLiulB6yPHg==", + "dev": true, + "requires": { + "nanoid": "^5.0.4", + "webpack": "^5.89.0" + }, + "dependencies": { + "enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "nanoid": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.4.tgz", + "integrity": "sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==", + "dev": true + }, + "tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "dev": true + }, + "terser-webpack-plugin": { + "version": "5.3.10", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", + "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.20", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.26.0" + } + }, + "webpack": { + "version": "5.90.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.90.0.tgz", + "integrity": "sha512-bdmyXRCXeeNIePv6R6tGPyy20aUobw4Zy8r0LUS2EWO+U+Ke/gYDgsCh7bl5rB6jPpr4r0SZa6dPxBxLooDT3w==", + "dev": true, + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.5", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.9.0", + "browserslist": "^4.21.10", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.15.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.2.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.10", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + } + }, + "webpack-sources": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", + "dev": true + } + } + }, "@socket.io/component-emitter": { "version": "3.1.0", "dev": true @@ -43786,6 +44987,12 @@ "version": "2.0.0", "dev": true }, + "@tootallnate/quickjs-emscripten": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", + "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==", + "dev": true + }, "@tsconfig/node10": { "version": "1.0.9", "dev": true @@ -43910,7 +45117,9 @@ } }, "@types/estree": { - "version": "1.0.4", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", "dev": true }, "@types/express": { @@ -44983,6 +46192,15 @@ "version": "1.0.0", "dev": true }, + "ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "dev": true, + "requires": { + "tslib": "^2.0.1" + } + }, "async": { "version": "3.2.4", "dev": true @@ -45035,6 +46253,12 @@ "proxy-from-env": "^1.1.0" } }, + "b4a": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", + "integrity": "sha512-fpWrvyVHEKyeEvbKZTVOeZF3VSKKWtJxFIxX/jaVPf+cLbGUSitjb49pHLqPV2BUNNZ0LcoeEGfE/YCpyDYHIw==", + "dev": true + }, "babel-code-frame": { "version": "6.26.0", "dev": true, @@ -46007,6 +47231,12 @@ "version": "2.0.0", "dev": true }, + "basic-ftp": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.0.4.tgz", + "integrity": "sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==", + "dev": true + }, "batch": { "version": "0.6.1", "dev": true @@ -46430,6 +47660,12 @@ "bytes": { "version": "3.1.0" }, + "bytes-iec": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/bytes-iec/-/bytes-iec-3.1.1.tgz", + "integrity": "sha512-fey6+4jDK7TFtFg/klGSvNKJctyU7n2aQdnM+CO0ruLPbqqMOM8Tio0Pc+deqUeVKX1tL5DQep1zQ7+37aTAsA==", + "dev": true + }, "cacache": { "version": "12.0.4", "dev": true, @@ -46726,6 +47962,16 @@ } } }, + "chromium-bidi": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.1.tgz", + "integrity": "sha512-dcCqOgq9fHKExc2R4JZs/oKbOghWpUNFAJODS8WKRtLhp3avtIH5UDCBrutdqZdh3pARogH8y1ObXm87emwb3g==", + "dev": true, + "requires": { + "mitt": "3.0.1", + "urlpattern-polyfill": "9.0.0" + } + }, "ci-info": { "version": "2.0.0", "dev": true @@ -47400,6 +48646,48 @@ } } }, + "cross-fetch": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", + "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", + "dev": true, + "requires": { + "node-fetch": "^2.6.12" + }, + "dependencies": { + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dev": true, + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "dev": true + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "dev": true + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dev": true, + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + } + } + }, "cross-spawn": { "version": "5.1.0", "dev": true, @@ -47497,6 +48785,12 @@ "assert-plus": "^1.0.0" } }, + "data-uri-to-buffer": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz", + "integrity": "sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg==", + "dev": true + }, "data-urls": { "version": "3.0.2", "dev": true, @@ -47757,6 +49051,17 @@ "isobject": "^3.0.1" } }, + "degenerator": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", + "integrity": "sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==", + "dev": true, + "requires": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + } + }, "del": { "version": "6.1.1", "dev": true, @@ -48509,6 +49814,33 @@ } } }, + "estimo": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/estimo/-/estimo-3.0.1.tgz", + "integrity": "sha512-xk0Gln+Ie+rfF3EDfa07wcq1n8u3tT6Hbt9UVAYBb3CMvYVfeljqlX9eJBSklbMhgV2BV3Hpcd22Q4T+jiC0fw==", + "dev": true, + "requires": { + "@sitespeed.io/tracium": "^0.3.3", + "commander": "^11.1.0", + "find-chrome-bin": "2.0.1", + "nanoid": "5.0.4", + "puppeteer-core": "21.6.0" + }, + "dependencies": { + "commander": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "dev": true + }, + "nanoid": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.4.tgz", + "integrity": "sha512-vAjmBf13gsmhXSgBrtIclinISzFFy22WwCYoyilZlsrRXNIHSwgFQ1bEdjRwMT3aoadeIF6HMuDRlOxzfXV8ig==", + "dev": true + } + } + }, "estraverse": { "version": "4.3.0", "dev": true @@ -48907,8 +50239,16 @@ "version": "1.3.0", "dev": true }, + "fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", + "dev": true + }, "fast-glob": { - "version": "3.3.1", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, "requires": { "@nodelib/fs.stat": "^2.0.2", @@ -49114,6 +50454,15 @@ } } }, + "find-chrome-bin": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/find-chrome-bin/-/find-chrome-bin-2.0.1.tgz", + "integrity": "sha512-aDwC2y0dLxt0GFmQ+q8bqBCZ10VW9zYT/lNV806tRDqDAh5XpkTWulB96RKDHDuKu36m/dEvhmhD5IU237oOTg==", + "dev": true, + "requires": { + "@puppeteer/browsers": "^1.8.0" + } + }, "find-index": { "version": "0.1.1", "dev": true @@ -49537,6 +50886,46 @@ "pump": "^3.0.0" } }, + "get-uri": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz", + "integrity": "sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw==", + "dev": true, + "requires": { + "basic-ftp": "^5.0.2", + "data-uri-to-buffer": "^6.0.0", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "dependencies": { + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "dev": true + } + } + }, "get-value": { "version": "2.0.6", "dev": true @@ -51562,6 +52951,12 @@ "immediate": "~3.0.5" } }, + "lilconfig": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz", + "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==", + "dev": true + }, "lines-and-columns": { "version": "2.0.3", "dev": true @@ -52723,6 +54118,12 @@ } } }, + "mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true + }, "mixin-deep": { "version": "1.3.2", "dev": true, @@ -52738,6 +54139,12 @@ "minimist": "^1.2.6" } }, + "mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "dev": true + }, "mkdirp-infer-owner": { "version": "2.0.0", "dev": true, @@ -53032,6 +54439,15 @@ "to-regex": "^3.0.1" } }, + "nanospinner": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nanospinner/-/nanospinner-1.1.0.tgz", + "integrity": "sha512-yFvNYMig4AthKYfHFl1sLj7B2nkHL4lzdig4osvl9/LdGbXwrdFRoqBS98gsEsOakr0yH+r5NZ/1Y9gdVB8trA==", + "dev": true, + "requires": { + "picocolors": "^1.0.0" + } + }, "natural-compare": { "version": "1.4.0", "dev": true @@ -53047,6 +54463,12 @@ "version": "2.6.2", "dev": true }, + "netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "dev": true + }, "nice-napi": { "version": "1.0.2", "dev": true, @@ -54440,6 +55862,83 @@ "p-reduce": "^2.0.0" } }, + "pac-proxy-agent": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.0.1.tgz", + "integrity": "sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==", + "dev": true, + "requires": { + "@tootallnate/quickjs-emscripten": "^0.23.0", + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "get-uri": "^6.0.1", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.2", + "pac-resolver": "^7.0.0", + "socks-proxy-agent": "^8.0.2" + }, + "dependencies": { + "agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "requires": { + "debug": "^4.3.4" + } + }, + "http-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "dev": true, + "requires": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + } + }, + "https-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", + "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "dev": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "4" + } + }, + "socks-proxy-agent": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.2.tgz", + "integrity": "sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==", + "dev": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "socks": "^2.7.1" + } + } + } + }, + "pac-resolver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", + "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", + "dev": true, + "requires": { + "degenerator": "^5.0.0", + "ip": "^1.1.8", + "netmask": "^2.0.2" + }, + "dependencies": { + "ip": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", + "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", + "dev": true + } + } + }, "package-hash": { "version": "4.0.0", "dev": true, @@ -55035,6 +56534,12 @@ "fromentries": "^1.2.0" } }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, "prometheus-example": { "version": "file:experimental/examples/prometheus", "requires": { @@ -55224,6 +56729,70 @@ "ipaddr.js": "1.9.1" } }, + "proxy-agent": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-6.3.1.tgz", + "integrity": "sha512-Rb5RVBy1iyqOtNl15Cw/llpeLH8bsb37gM1FUfKQ+Wck6xHlbAhWGUFiTRHtkjqGTA5pSHz6+0hrPW/oECihPQ==", + "dev": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.2", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "^7.0.1", + "proxy-from-env": "^1.1.0", + "socks-proxy-agent": "^8.0.2" + }, + "dependencies": { + "agent-base": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz", + "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==", + "dev": true, + "requires": { + "debug": "^4.3.4" + } + }, + "http-proxy-agent": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", + "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "dev": true, + "requires": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + } + }, + "https-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", + "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "dev": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "4" + } + }, + "lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "dev": true + }, + "socks-proxy-agent": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.2.tgz", + "integrity": "sha512-8zuqoLv1aP/66PHF5TqwJ7Czm3Yv32urJQHrVyhD7mmA6d61Zv8cIXQYPTWwmg6qlupnPvs/QKDmfa4P/qct2g==", + "dev": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "^4.3.4", + "socks": "^2.7.1" + } + } + } + }, "proxy-from-env": { "version": "1.1.0" }, @@ -55299,6 +56868,43 @@ "version": "1.4.1", "dev": true }, + "puppeteer-core": { + "version": "21.6.0", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-21.6.0.tgz", + "integrity": "sha512-1vrzbp2E1JpBwtIIrriWkN+A0afUxkqRuFTC3uASc5ql6iuK9ppOdIU/CPGKwOyB4YFIQ16mRbK0PK19mbXnaQ==", + "dev": true, + "requires": { + "@puppeteer/browsers": "1.9.0", + "chromium-bidi": "0.5.1", + "cross-fetch": "4.0.0", + "debug": "4.3.4", + "devtools-protocol": "0.0.1203626", + "ws": "8.14.2" + }, + "dependencies": { + "@puppeteer/browsers": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.9.0.tgz", + "integrity": "sha512-QwguOLy44YBGC8vuPP2nmpX4MUN2FzWbsnvZJtiCzecU3lHmVZkaC1tq6rToi9a200m8RzlVtDyxCS0UIDrxUg==", + "dev": true, + "requires": { + "debug": "4.3.4", + "extract-zip": "2.0.1", + "progress": "2.0.3", + "proxy-agent": "6.3.1", + "tar-fs": "3.0.4", + "unbzip2-stream": "1.4.3", + "yargs": "17.7.2" + } + }, + "devtools-protocol": { + "version": "0.0.1203626", + "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1203626.tgz", + "integrity": "sha512-nEzHZteIUZfGCZtTiS1fRpC8UZmsfD1SiyPvaUNvS13dvKf666OAm8YTi0+Ca3n1nLEyu49Cy4+dPWpaHFJk9g==", + "dev": true + } + } + }, "q": { "version": "1.5.1", "dev": true @@ -55323,6 +56929,12 @@ "version": "1.2.3", "dev": true }, + "queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==", + "dev": true + }, "quick-lru": { "version": "5.1.1", "dev": true @@ -56502,6 +58114,104 @@ } } }, + "size-limit": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/size-limit/-/size-limit-11.0.2.tgz", + "integrity": "sha512-iFZ8iTR/3zPqxSwEIdGnTVYVU0F2nhodLQG/G6zpi/NxECYAK9ntq2lNr+prXH7h3gyBjx2Umt2D/oS2Qzz+eg==", + "dev": true, + "requires": { + "bytes-iec": "^3.1.1", + "chokidar": "^3.5.3", + "globby": "^14.0.0", + "lilconfig": "^3.0.0", + "nanospinner": "^1.1.0", + "picocolors": "^1.0.0" + }, + "dependencies": { + "binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true + }, + "chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "optional": true + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "globby": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-14.0.0.tgz", + "integrity": "sha512-/1WM/LNHRAOH9lZta77uGbq0dAEQM+XjNesWwhlERDVenqothRbnzTrL3/LrIoEPPjeUHC3vrS6TwoyxeHs7MQ==", + "dev": true, + "requires": { + "@sindresorhus/merge-streams": "^1.0.0", + "fast-glob": "^3.3.2", + "ignore": "^5.2.4", + "path-type": "^5.0.0", + "slash": "^5.1.0", + "unicorn-magic": "^0.1.0" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "path-type": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", + "integrity": "sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==", + "dev": true + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "slash": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", + "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", + "dev": true + } + } + }, "slash": { "version": "1.0.0", "dev": true @@ -56983,6 +58693,16 @@ } } }, + "streamx": { + "version": "2.15.6", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.6.tgz", + "integrity": "sha512-q+vQL4AAz+FdfT137VF69Cc/APqUbxy+MDOImRrMvchJpigHj9GksgDU2LYbO9rx7RX6osWgxJB2WxhYv4SZAw==", + "dev": true, + "requires": { + "fast-fifo": "^1.1.0", + "queue-tick": "^1.0.1" + } + }, "string_decoder": { "version": "1.3.0", "dev": true, @@ -57159,6 +58879,30 @@ } } }, + "tar-fs": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.4.tgz", + "integrity": "sha512-5AFQU8b9qLfZCX9zp2duONhPmZv0hGYiBPJsyUdqMjzq/mqVpy/rEUSeHk1+YitmxugaptgBh5oDGU3VsAJq4w==", + "dev": true, + "requires": { + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^3.1.5" + }, + "dependencies": { + "tar-stream": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", + "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", + "dev": true, + "requires": { + "b4a": "^1.6.4", + "fast-fifo": "^1.2.0", + "streamx": "^2.15.0" + } + } + } + }, "tar-stream": { "version": "2.2.0", "dev": true, @@ -57281,7 +59025,9 @@ } }, "terser": { - "version": "5.24.0", + "version": "5.27.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.27.0.tgz", + "integrity": "sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==", "dev": true, "requires": { "@jridgewell/source-map": "^0.3.3", @@ -58041,6 +59787,28 @@ "version": "3.17.4", "dev": true }, + "unbzip2-stream": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", + "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", + "dev": true, + "requires": { + "buffer": "^5.2.1", + "through": "^2.3.8" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + } + } + }, "underscore": { "version": "1.13.6", "dev": true @@ -58065,6 +59833,12 @@ "version": "2.1.0", "dev": true }, + "unicorn-magic": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.1.0.tgz", + "integrity": "sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==", + "dev": true + }, "union-value": { "version": "1.0.1", "dev": true, @@ -58217,6 +59991,12 @@ "fast-url-parser": "^1.1.3" } }, + "urlpattern-polyfill": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz", + "integrity": "sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==", + "dev": true + }, "use": { "version": "3.1.1", "dev": true diff --git a/packages/opentelemetry-resources/test/detectors/browser/EnvDetector.test.ts b/packages/opentelemetry-resources/test/detectors/browser/EnvDetector.test.ts index 8901595773..0a263ce4b3 100644 --- a/packages/opentelemetry-resources/test/detectors/browser/EnvDetector.test.ts +++ b/packages/opentelemetry-resources/test/detectors/browser/EnvDetector.test.ts @@ -16,7 +16,6 @@ import * as assert from 'assert'; import { RAW_ENVIRONMENT } from '@opentelemetry/core'; -import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'; import { envDetector, IResource } from '../../../src'; import { assertEmptyResource, @@ -41,9 +40,9 @@ describeBrowser('envDetector() on web browser', () => { it('should return resource information from environment variable', async () => { const resource: IResource = await envDetector.detect(); assertWebEngineResource(resource, { - [SemanticResourceAttributes.WEBENGINE_NAME]: 'chromium', - [SemanticResourceAttributes.WEBENGINE_VERSION]: '99', - [SemanticResourceAttributes.WEBENGINE_DESCRIPTION]: 'Chromium', + name: 'chromium', + version: '99', + description: 'Chromium', }); assert.strictEqual(resource.attributes['custom.key'], 'custom value'); }); diff --git a/packages/opentelemetry-resources/test/resource-assertions.test.ts b/packages/opentelemetry-resources/test/resource-assertions.test.ts index cde2b8a9f2..7dcb278f8a 100644 --- a/packages/opentelemetry-resources/test/resource-assertions.test.ts +++ b/packages/opentelemetry-resources/test/resource-assertions.test.ts @@ -15,7 +15,12 @@ */ import { SDK_INFO } from '@opentelemetry/core'; -import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'; +import { + SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, + SEMRESATTRS_TELEMETRY_SDK_NAME, + SEMRESATTRS_TELEMETRY_SDK_VERSION, + SemanticResourceAttributes, +} from '@opentelemetry/semantic-conventions'; import { Resource } from '../src/Resource'; import { assertCloudResource, @@ -132,9 +137,12 @@ describe('assertK8sResource', () => { describe('assertTelemetrySDKResource', () => { it('uses default validations', () => { const resource = new Resource({ - [SemanticResourceAttributes.TELEMETRY_SDK_NAME]: SDK_INFO.NAME, - [SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]: SDK_INFO.LANGUAGE, - [SemanticResourceAttributes.TELEMETRY_SDK_VERSION]: SDK_INFO.VERSION, + [SemanticResourceAttributes.TELEMETRY_SDK_NAME]: + SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME], + [SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]: + SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE], + [SemanticResourceAttributes.TELEMETRY_SDK_VERSION]: + SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION], }); assertTelemetrySDKResource(resource, {}); }); diff --git a/packages/opentelemetry-resources/test/util/resource-assertions.ts b/packages/opentelemetry-resources/test/util/resource-assertions.ts index 02f1a70dd4..c9da0b36ac 100644 --- a/packages/opentelemetry-resources/test/util/resource-assertions.ts +++ b/packages/opentelemetry-resources/test/util/resource-assertions.ts @@ -17,7 +17,12 @@ import { SDK_INFO } from '@opentelemetry/core'; import * as assert from 'assert'; import { IResource } from '../../src/IResource'; -import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'; +import { + SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, + SEMRESATTRS_TELEMETRY_SDK_NAME, + SEMRESATTRS_TELEMETRY_SDK_VERSION, + SemanticResourceAttributes, +} from '@opentelemetry/semantic-conventions'; /** * Test utility method to validate a cloud resource @@ -199,9 +204,9 @@ export const assertTelemetrySDKResource = ( } ) => { const defaults = { - name: SDK_INFO.NAME, - language: SDK_INFO.LANGUAGE, - version: SDK_INFO.VERSION, + name: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME], + language: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE], + version: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION], }; validations = { ...defaults, ...validations }; @@ -382,7 +387,9 @@ const assertHasOneLabel = (prefix: string, resource: IResource): void => { assert.ok( hasOne, - 'Resource must have one of the following attributes: ' + + 'Must have one Resource(s) starting with [' + + prefix + + '] matching the following attributes: ' + Object.entries(SemanticResourceAttributes) .reduce((result, [key, value]) => { if (key.startsWith(prefix)) { @@ -390,6 +397,7 @@ const assertHasOneLabel = (prefix: string, resource: IResource): void => { } return result; }) - .join(', ') + .join(', ') + + JSON.stringify(Object.keys(SemanticResourceAttributes)) ); }; diff --git a/packages/opentelemetry-semantic-conventions/package.json b/packages/opentelemetry-semantic-conventions/package.json index 1ee7586da3..cb8be8ab6f 100644 --- a/packages/opentelemetry-semantic-conventions/package.json +++ b/packages/opentelemetry-semantic-conventions/package.json @@ -17,7 +17,8 @@ "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json", "precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies", "prewatch": "npm run precompile", - "peer-api-check": "node ../../scripts/peer-api-check.js" + "peer-api-check": "node ../../scripts/peer-api-check.js", + "size-check": "npm run compile && ts-mocha -p tsconfig.json 'test/**/*.test.ts'" }, "keywords": [ "opentelemetry", @@ -52,6 +53,9 @@ "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", + "@size-limit/file": "^11.0.1", + "@size-limit/time": "^11.0.1", + "@size-limit/webpack": "^11.0.1", "codecov": "3.8.3", "cross-var": "1.1.0", "lerna": "6.6.2", @@ -59,7 +63,9 @@ "nock": "13.3.8", "nyc": "15.1.0", "sinon": "15.1.2", + "size-limit": "^11.0.1", "ts-mocha": "10.0.0", + "ts-node": "10.9.2", "typescript": "4.4.4" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-semantic-conventions", diff --git a/packages/opentelemetry-semantic-conventions/src/internal/utils.ts b/packages/opentelemetry-semantic-conventions/src/internal/utils.ts new file mode 100644 index 0000000000..7c26585061 --- /dev/null +++ b/packages/opentelemetry-semantic-conventions/src/internal/utils.ts @@ -0,0 +1,35 @@ +/* + * 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. + */ + +/** + * Creates a const map from the given values + * @param values - An array of values to be used as keys and values in the map. + * @returns A populated version of the map with the values and keys derived from the values. + */ +/*#__NO_SIDE_EFFECTS__*/ +export function createConstMap(values: Array): T { + // eslint-disable-next-line prefer-const, @typescript-eslint/no-explicit-any + let res: any = {}; + const len = values.length; + for (let lp = 0; lp < len; lp++) { + const val = values[lp]; + if (val) { + res[String(val).toUpperCase().replace(/[-.]/g, '_')] = val; + } + } + + return res as T; +} diff --git a/packages/opentelemetry-semantic-conventions/src/resource/SemanticResourceAttributes.ts b/packages/opentelemetry-semantic-conventions/src/resource/SemanticResourceAttributes.ts index e123c3513e..dab5ad44d6 100644 --- a/packages/opentelemetry-semantic-conventions/src/resource/SemanticResourceAttributes.ts +++ b/packages/opentelemetry-semantic-conventions/src/resource/SemanticResourceAttributes.ts @@ -14,155 +14,714 @@ * limitations under the License. */ +import { createConstMap } from '../internal/utils'; + +//---------------------------------------------------------------------------------------------------------- // DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates//templates/SemanticAttributes.ts.j2 -export const SemanticResourceAttributes = { +//---------------------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------------------- +// Constant values for SemanticResourceAttributes +//---------------------------------------------------------------------------------------------------------- + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_CLOUD_PROVIDER = 'cloud.provider'; +const TMP_CLOUD_ACCOUNT_ID = 'cloud.account.id'; +const TMP_CLOUD_REGION = 'cloud.region'; +const TMP_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone'; +const TMP_CLOUD_PLATFORM = 'cloud.platform'; +const TMP_AWS_ECS_CONTAINER_ARN = 'aws.ecs.container.arn'; +const TMP_AWS_ECS_CLUSTER_ARN = 'aws.ecs.cluster.arn'; +const TMP_AWS_ECS_LAUNCHTYPE = 'aws.ecs.launchtype'; +const TMP_AWS_ECS_TASK_ARN = 'aws.ecs.task.arn'; +const TMP_AWS_ECS_TASK_FAMILY = 'aws.ecs.task.family'; +const TMP_AWS_ECS_TASK_REVISION = 'aws.ecs.task.revision'; +const TMP_AWS_EKS_CLUSTER_ARN = 'aws.eks.cluster.arn'; +const TMP_AWS_LOG_GROUP_NAMES = 'aws.log.group.names'; +const TMP_AWS_LOG_GROUP_ARNS = 'aws.log.group.arns'; +const TMP_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names'; +const TMP_AWS_LOG_STREAM_ARNS = 'aws.log.stream.arns'; +const TMP_CONTAINER_NAME = 'container.name'; +const TMP_CONTAINER_ID = 'container.id'; +const TMP_CONTAINER_RUNTIME = 'container.runtime'; +const TMP_CONTAINER_IMAGE_NAME = 'container.image.name'; +const TMP_CONTAINER_IMAGE_TAG = 'container.image.tag'; +const TMP_DEPLOYMENT_ENVIRONMENT = 'deployment.environment'; +const TMP_DEVICE_ID = 'device.id'; +const TMP_DEVICE_MODEL_IDENTIFIER = 'device.model.identifier'; +const TMP_DEVICE_MODEL_NAME = 'device.model.name'; +const TMP_FAAS_NAME = 'faas.name'; +const TMP_FAAS_ID = 'faas.id'; +const TMP_FAAS_VERSION = 'faas.version'; +const TMP_FAAS_INSTANCE = 'faas.instance'; +const TMP_FAAS_MAX_MEMORY = 'faas.max_memory'; +const TMP_HOST_ID = 'host.id'; +const TMP_HOST_NAME = 'host.name'; +const TMP_HOST_TYPE = 'host.type'; +const TMP_HOST_ARCH = 'host.arch'; +const TMP_HOST_IMAGE_NAME = 'host.image.name'; +const TMP_HOST_IMAGE_ID = 'host.image.id'; +const TMP_HOST_IMAGE_VERSION = 'host.image.version'; +const TMP_K8S_CLUSTER_NAME = 'k8s.cluster.name'; +const TMP_K8S_NODE_NAME = 'k8s.node.name'; +const TMP_K8S_NODE_UID = 'k8s.node.uid'; +const TMP_K8S_NAMESPACE_NAME = 'k8s.namespace.name'; +const TMP_K8S_POD_UID = 'k8s.pod.uid'; +const TMP_K8S_POD_NAME = 'k8s.pod.name'; +const TMP_K8S_CONTAINER_NAME = 'k8s.container.name'; +const TMP_K8S_REPLICASET_UID = 'k8s.replicaset.uid'; +const TMP_K8S_REPLICASET_NAME = 'k8s.replicaset.name'; +const TMP_K8S_DEPLOYMENT_UID = 'k8s.deployment.uid'; +const TMP_K8S_DEPLOYMENT_NAME = 'k8s.deployment.name'; +const TMP_K8S_STATEFULSET_UID = 'k8s.statefulset.uid'; +const TMP_K8S_STATEFULSET_NAME = 'k8s.statefulset.name'; +const TMP_K8S_DAEMONSET_UID = 'k8s.daemonset.uid'; +const TMP_K8S_DAEMONSET_NAME = 'k8s.daemonset.name'; +const TMP_K8S_JOB_UID = 'k8s.job.uid'; +const TMP_K8S_JOB_NAME = 'k8s.job.name'; +const TMP_K8S_CRONJOB_UID = 'k8s.cronjob.uid'; +const TMP_K8S_CRONJOB_NAME = 'k8s.cronjob.name'; +const TMP_OS_TYPE = 'os.type'; +const TMP_OS_DESCRIPTION = 'os.description'; +const TMP_OS_NAME = 'os.name'; +const TMP_OS_VERSION = 'os.version'; +const TMP_PROCESS_PID = 'process.pid'; +const TMP_PROCESS_EXECUTABLE_NAME = 'process.executable.name'; +const TMP_PROCESS_EXECUTABLE_PATH = 'process.executable.path'; +const TMP_PROCESS_COMMAND = 'process.command'; +const TMP_PROCESS_COMMAND_LINE = 'process.command_line'; +const TMP_PROCESS_COMMAND_ARGS = 'process.command_args'; +const TMP_PROCESS_OWNER = 'process.owner'; +const TMP_PROCESS_RUNTIME_NAME = 'process.runtime.name'; +const TMP_PROCESS_RUNTIME_VERSION = 'process.runtime.version'; +const TMP_PROCESS_RUNTIME_DESCRIPTION = 'process.runtime.description'; +const TMP_SERVICE_NAME = 'service.name'; +const TMP_SERVICE_NAMESPACE = 'service.namespace'; +const TMP_SERVICE_INSTANCE_ID = 'service.instance.id'; +const TMP_SERVICE_VERSION = 'service.version'; +const TMP_TELEMETRY_SDK_NAME = 'telemetry.sdk.name'; +const TMP_TELEMETRY_SDK_LANGUAGE = 'telemetry.sdk.language'; +const TMP_TELEMETRY_SDK_VERSION = 'telemetry.sdk.version'; +const TMP_TELEMETRY_AUTO_VERSION = 'telemetry.auto.version'; +const TMP_WEBENGINE_NAME = 'webengine.name'; +const TMP_WEBENGINE_VERSION = 'webengine.version'; +const TMP_WEBENGINE_DESCRIPTION = 'webengine.description'; + +/** + * Name of the cloud provider. + */ +export const SEMRESATTRS_CLOUD_PROVIDER = TMP_CLOUD_PROVIDER; + +/** + * The cloud account ID the resource is assigned to. + */ +export const SEMRESATTRS_CLOUD_ACCOUNT_ID = TMP_CLOUD_ACCOUNT_ID; + +/** + * The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations). + */ +export const SEMRESATTRS_CLOUD_REGION = TMP_CLOUD_REGION; + +/** + * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. + * + * Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud. + */ +export const SEMRESATTRS_CLOUD_AVAILABILITY_ZONE = TMP_CLOUD_AVAILABILITY_ZONE; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const SEMRESATTRS_CLOUD_PLATFORM = TMP_CLOUD_PLATFORM; + +/** + * The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). + */ +export const SEMRESATTRS_AWS_ECS_CONTAINER_ARN = TMP_AWS_ECS_CONTAINER_ARN; + +/** + * The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). + */ +export const SEMRESATTRS_AWS_ECS_CLUSTER_ARN = TMP_AWS_ECS_CLUSTER_ARN; + +/** + * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + */ +export const SEMRESATTRS_AWS_ECS_LAUNCHTYPE = TMP_AWS_ECS_LAUNCHTYPE; + +/** + * The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html). + */ +export const SEMRESATTRS_AWS_ECS_TASK_ARN = TMP_AWS_ECS_TASK_ARN; + +/** + * The task definition family this task definition is a member of. + */ +export const SEMRESATTRS_AWS_ECS_TASK_FAMILY = TMP_AWS_ECS_TASK_FAMILY; + +/** + * The revision for this task definition. + */ +export const SEMRESATTRS_AWS_ECS_TASK_REVISION = TMP_AWS_ECS_TASK_REVISION; + +/** + * The ARN of an EKS cluster. + */ +export const SEMRESATTRS_AWS_EKS_CLUSTER_ARN = TMP_AWS_EKS_CLUSTER_ARN; + +/** + * The name(s) of the AWS log group(s) an application is writing to. + * + * Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group. + */ +export const SEMRESATTRS_AWS_LOG_GROUP_NAMES = TMP_AWS_LOG_GROUP_NAMES; + +/** + * The Amazon Resource Name(s) (ARN) of the AWS log group(s). + * + * Note: See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). + */ +export const SEMRESATTRS_AWS_LOG_GROUP_ARNS = TMP_AWS_LOG_GROUP_ARNS; + +/** + * The name(s) of the AWS log stream(s) an application is writing to. + */ +export const SEMRESATTRS_AWS_LOG_STREAM_NAMES = TMP_AWS_LOG_STREAM_NAMES; + +/** + * The ARN(s) of the AWS log stream(s). + * + * Note: See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream. + */ +export const SEMRESATTRS_AWS_LOG_STREAM_ARNS = TMP_AWS_LOG_STREAM_ARNS; + +/** + * Container name. + */ +export const SEMRESATTRS_CONTAINER_NAME = TMP_CONTAINER_NAME; + +/** + * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. + */ +export const SEMRESATTRS_CONTAINER_ID = TMP_CONTAINER_ID; + +/** + * The container runtime managing this container. + */ +export const SEMRESATTRS_CONTAINER_RUNTIME = TMP_CONTAINER_RUNTIME; + +/** + * Name of the image the container was built on. + */ +export const SEMRESATTRS_CONTAINER_IMAGE_NAME = TMP_CONTAINER_IMAGE_NAME; + +/** + * Container image tag. + */ +export const SEMRESATTRS_CONTAINER_IMAGE_TAG = TMP_CONTAINER_IMAGE_TAG; + +/** + * Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier). + */ +export const SEMRESATTRS_DEPLOYMENT_ENVIRONMENT = TMP_DEPLOYMENT_ENVIRONMENT; + +/** + * A unique identifier representing the device. + * + * Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence. + */ +export const SEMRESATTRS_DEVICE_ID = TMP_DEVICE_ID; + +/** + * The model identifier for the device. + * + * Note: It's recommended this value represents a machine readable version of the model identifier rather than the market or consumer-friendly name of the device. + */ +export const SEMRESATTRS_DEVICE_MODEL_IDENTIFIER = TMP_DEVICE_MODEL_IDENTIFIER; + +/** + * The marketing name for the device model. + * + * Note: It's recommended this value represents a human readable version of the device model rather than a machine readable alternative. + */ +export const SEMRESATTRS_DEVICE_MODEL_NAME = TMP_DEVICE_MODEL_NAME; + +/** + * The name of the single function that this runtime instance executes. + * + * Note: This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-general.md#source-code-attributes) span attributes). + */ +export const SEMRESATTRS_FAAS_NAME = TMP_FAAS_NAME; + +/** +* The unique ID of the single function that this runtime instance executes. +* +* Note: Depending on the cloud provider, use: + +* **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html). +Take care not to use the "invoked ARN" directly but replace any +[alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) with the resolved function version, as the same runtime instance may be invokable with multiple +different aliases. +* **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names) +* **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id). + +On some providers, it may not be possible to determine the full ID at startup, +which is why this field cannot be made required. For example, on AWS the account ID +part of the ARN is not available without calling another AWS API +which may be deemed too slow for a short-running lambda function. +As an alternative, consider setting `faas.id` as a span attribute instead. +*/ +export const SEMRESATTRS_FAAS_ID = TMP_FAAS_ID; + +/** +* The immutable version of the function being executed. +* +* Note: Depending on the cloud provider and platform, use: + +* **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html) + (an integer represented as a decimal string). +* **Google Cloud Run:** The [revision](https://cloud.google.com/run/docs/managing/revisions) + (i.e., the function name plus the revision suffix). +* **Google Cloud Functions:** The value of the + [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically). +* **Azure Functions:** Not applicable. Do not set this attribute. +*/ +export const SEMRESATTRS_FAAS_VERSION = TMP_FAAS_VERSION; + +/** + * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. + * + * Note: * **AWS Lambda:** Use the (full) log stream name. + */ +export const SEMRESATTRS_FAAS_INSTANCE = TMP_FAAS_INSTANCE; + +/** + * The amount of memory available to the serverless function in MiB. + * + * Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information. + */ +export const SEMRESATTRS_FAAS_MAX_MEMORY = TMP_FAAS_MAX_MEMORY; + +/** + * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. + */ +export const SEMRESATTRS_HOST_ID = TMP_HOST_ID; + +/** + * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. + */ +export const SEMRESATTRS_HOST_NAME = TMP_HOST_NAME; + +/** + * Type of host. For Cloud, this must be the machine type. + */ +export const SEMRESATTRS_HOST_TYPE = TMP_HOST_TYPE; + +/** + * The CPU architecture the host system is running on. + */ +export const SEMRESATTRS_HOST_ARCH = TMP_HOST_ARCH; + +/** + * Name of the VM image or OS install the host was instantiated from. + */ +export const SEMRESATTRS_HOST_IMAGE_NAME = TMP_HOST_IMAGE_NAME; + +/** + * VM image ID. For Cloud, this value is from the provider. + */ +export const SEMRESATTRS_HOST_IMAGE_ID = TMP_HOST_IMAGE_ID; + +/** + * The version string of the VM image as defined in [Version Attributes](README.md#version-attributes). + */ +export const SEMRESATTRS_HOST_IMAGE_VERSION = TMP_HOST_IMAGE_VERSION; + +/** + * The name of the cluster. + */ +export const SEMRESATTRS_K8S_CLUSTER_NAME = TMP_K8S_CLUSTER_NAME; + +/** + * The name of the Node. + */ +export const SEMRESATTRS_K8S_NODE_NAME = TMP_K8S_NODE_NAME; + +/** + * The UID of the Node. + */ +export const SEMRESATTRS_K8S_NODE_UID = TMP_K8S_NODE_UID; + +/** + * The name of the namespace that the pod is running in. + */ +export const SEMRESATTRS_K8S_NAMESPACE_NAME = TMP_K8S_NAMESPACE_NAME; + +/** + * The UID of the Pod. + */ +export const SEMRESATTRS_K8S_POD_UID = TMP_K8S_POD_UID; + +/** + * The name of the Pod. + */ +export const SEMRESATTRS_K8S_POD_NAME = TMP_K8S_POD_NAME; + +/** + * The name of the Container in a Pod template. + */ +export const SEMRESATTRS_K8S_CONTAINER_NAME = TMP_K8S_CONTAINER_NAME; + +/** + * The UID of the ReplicaSet. + */ +export const SEMRESATTRS_K8S_REPLICASET_UID = TMP_K8S_REPLICASET_UID; + +/** + * The name of the ReplicaSet. + */ +export const SEMRESATTRS_K8S_REPLICASET_NAME = TMP_K8S_REPLICASET_NAME; + +/** + * The UID of the Deployment. + */ +export const SEMRESATTRS_K8S_DEPLOYMENT_UID = TMP_K8S_DEPLOYMENT_UID; + +/** + * The name of the Deployment. + */ +export const SEMRESATTRS_K8S_DEPLOYMENT_NAME = TMP_K8S_DEPLOYMENT_NAME; + +/** + * The UID of the StatefulSet. + */ +export const SEMRESATTRS_K8S_STATEFULSET_UID = TMP_K8S_STATEFULSET_UID; + +/** + * The name of the StatefulSet. + */ +export const SEMRESATTRS_K8S_STATEFULSET_NAME = TMP_K8S_STATEFULSET_NAME; + +/** + * The UID of the DaemonSet. + */ +export const SEMRESATTRS_K8S_DAEMONSET_UID = TMP_K8S_DAEMONSET_UID; + +/** + * The name of the DaemonSet. + */ +export const SEMRESATTRS_K8S_DAEMONSET_NAME = TMP_K8S_DAEMONSET_NAME; + +/** + * The UID of the Job. + */ +export const SEMRESATTRS_K8S_JOB_UID = TMP_K8S_JOB_UID; + +/** + * The name of the Job. + */ +export const SEMRESATTRS_K8S_JOB_NAME = TMP_K8S_JOB_NAME; + +/** + * The UID of the CronJob. + */ +export const SEMRESATTRS_K8S_CRONJOB_UID = TMP_K8S_CRONJOB_UID; + +/** + * The name of the CronJob. + */ +export const SEMRESATTRS_K8S_CRONJOB_NAME = TMP_K8S_CRONJOB_NAME; + +/** + * The operating system type. + */ +export const SEMRESATTRS_OS_TYPE = TMP_OS_TYPE; + +/** + * Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. + */ +export const SEMRESATTRS_OS_DESCRIPTION = TMP_OS_DESCRIPTION; + +/** + * Human readable operating system name. + */ +export const SEMRESATTRS_OS_NAME = TMP_OS_NAME; + +/** + * The version string of the operating system as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes). + */ +export const SEMRESATTRS_OS_VERSION = TMP_OS_VERSION; + +/** + * Process identifier (PID). + */ +export const SEMRESATTRS_PROCESS_PID = TMP_PROCESS_PID; + +/** + * The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. + */ +export const SEMRESATTRS_PROCESS_EXECUTABLE_NAME = TMP_PROCESS_EXECUTABLE_NAME; + +/** + * The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. + */ +export const SEMRESATTRS_PROCESS_EXECUTABLE_PATH = TMP_PROCESS_EXECUTABLE_PATH; + +/** + * The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. + */ +export const SEMRESATTRS_PROCESS_COMMAND = TMP_PROCESS_COMMAND; + +/** + * The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. + */ +export const SEMRESATTRS_PROCESS_COMMAND_LINE = TMP_PROCESS_COMMAND_LINE; + +/** + * All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. + */ +export const SEMRESATTRS_PROCESS_COMMAND_ARGS = TMP_PROCESS_COMMAND_ARGS; + +/** + * The username of the user that owns the process. + */ +export const SEMRESATTRS_PROCESS_OWNER = TMP_PROCESS_OWNER; + +/** + * The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. + */ +export const SEMRESATTRS_PROCESS_RUNTIME_NAME = TMP_PROCESS_RUNTIME_NAME; + +/** + * The version of the runtime of this process, as returned by the runtime without modification. + */ +export const SEMRESATTRS_PROCESS_RUNTIME_VERSION = TMP_PROCESS_RUNTIME_VERSION; + +/** + * An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. + */ +export const SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION = + TMP_PROCESS_RUNTIME_DESCRIPTION; + +/** + * Logical name of the service. + * + * Note: MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`. + */ +export const SEMRESATTRS_SERVICE_NAME = TMP_SERVICE_NAME; + +/** + * A namespace for `service.name`. + * + * Note: A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. + */ +export const SEMRESATTRS_SERVICE_NAMESPACE = TMP_SERVICE_NAMESPACE; + +/** + * The string ID of the service instance. + * + * Note: MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts). If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations). + */ +export const SEMRESATTRS_SERVICE_INSTANCE_ID = TMP_SERVICE_INSTANCE_ID; + +/** + * The version string of the service API or implementation. + */ +export const SEMRESATTRS_SERVICE_VERSION = TMP_SERVICE_VERSION; + +/** + * The name of the telemetry SDK as defined above. + */ +export const SEMRESATTRS_TELEMETRY_SDK_NAME = TMP_TELEMETRY_SDK_NAME; + +/** + * The language of the telemetry SDK. + */ +export const SEMRESATTRS_TELEMETRY_SDK_LANGUAGE = TMP_TELEMETRY_SDK_LANGUAGE; + +/** + * The version string of the telemetry SDK. + */ +export const SEMRESATTRS_TELEMETRY_SDK_VERSION = TMP_TELEMETRY_SDK_VERSION; + +/** + * The version string of the auto instrumentation agent, if used. + */ +export const SEMRESATTRS_TELEMETRY_AUTO_VERSION = TMP_TELEMETRY_AUTO_VERSION; + +/** + * The name of the web engine. + */ +export const SEMRESATTRS_WEBENGINE_NAME = TMP_WEBENGINE_NAME; + +/** + * The version of the web engine. + */ +export const SEMRESATTRS_WEBENGINE_VERSION = TMP_WEBENGINE_VERSION; + +/** + * Additional description of the web engine (e.g. detailed version and edition information). + */ +export const SEMRESATTRS_WEBENGINE_DESCRIPTION = TMP_WEBENGINE_DESCRIPTION; + +/** + * Definition of available values for SemanticResourceAttributes + * This type is used for backward compatibility, you should use the individual exported + * constants SemanticResourceAttributes_XXXXX rather than the exported constant map. As any single reference + * to a constant map value will result in all strings being included into your bundle. + * @deprecated Use the SEMRESATTRS_XXXXX constants rather than the SemanticResourceAttributes.XXXXX for bundle minification. + */ +export type SemanticResourceAttributes = { /** * Name of the cloud provider. */ - CLOUD_PROVIDER: 'cloud.provider', + CLOUD_PROVIDER: 'cloud.provider'; /** * The cloud account ID the resource is assigned to. */ - CLOUD_ACCOUNT_ID: 'cloud.account.id', + CLOUD_ACCOUNT_ID: 'cloud.account.id'; /** * The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations). */ - CLOUD_REGION: 'cloud.region', + CLOUD_REGION: 'cloud.region'; /** * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. * * Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud. */ - CLOUD_AVAILABILITY_ZONE: 'cloud.availability_zone', + CLOUD_AVAILABILITY_ZONE: 'cloud.availability_zone'; /** * The cloud platform in use. * * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. */ - CLOUD_PLATFORM: 'cloud.platform', + CLOUD_PLATFORM: 'cloud.platform'; /** * The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). */ - AWS_ECS_CONTAINER_ARN: 'aws.ecs.container.arn', + AWS_ECS_CONTAINER_ARN: 'aws.ecs.container.arn'; /** * The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). */ - AWS_ECS_CLUSTER_ARN: 'aws.ecs.cluster.arn', + AWS_ECS_CLUSTER_ARN: 'aws.ecs.cluster.arn'; /** * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. */ - AWS_ECS_LAUNCHTYPE: 'aws.ecs.launchtype', + AWS_ECS_LAUNCHTYPE: 'aws.ecs.launchtype'; /** * The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html). */ - AWS_ECS_TASK_ARN: 'aws.ecs.task.arn', + AWS_ECS_TASK_ARN: 'aws.ecs.task.arn'; /** * The task definition family this task definition is a member of. */ - AWS_ECS_TASK_FAMILY: 'aws.ecs.task.family', + AWS_ECS_TASK_FAMILY: 'aws.ecs.task.family'; /** * The revision for this task definition. */ - AWS_ECS_TASK_REVISION: 'aws.ecs.task.revision', + AWS_ECS_TASK_REVISION: 'aws.ecs.task.revision'; /** * The ARN of an EKS cluster. */ - AWS_EKS_CLUSTER_ARN: 'aws.eks.cluster.arn', + AWS_EKS_CLUSTER_ARN: 'aws.eks.cluster.arn'; /** * The name(s) of the AWS log group(s) an application is writing to. * * Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group. */ - AWS_LOG_GROUP_NAMES: 'aws.log.group.names', + AWS_LOG_GROUP_NAMES: 'aws.log.group.names'; /** * The Amazon Resource Name(s) (ARN) of the AWS log group(s). * * Note: See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). */ - AWS_LOG_GROUP_ARNS: 'aws.log.group.arns', + AWS_LOG_GROUP_ARNS: 'aws.log.group.arns'; /** * The name(s) of the AWS log stream(s) an application is writing to. */ - AWS_LOG_STREAM_NAMES: 'aws.log.stream.names', + AWS_LOG_STREAM_NAMES: 'aws.log.stream.names'; /** * The ARN(s) of the AWS log stream(s). * * Note: See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream. */ - AWS_LOG_STREAM_ARNS: 'aws.log.stream.arns', + AWS_LOG_STREAM_ARNS: 'aws.log.stream.arns'; /** * Container name. */ - CONTAINER_NAME: 'container.name', + CONTAINER_NAME: 'container.name'; /** * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. */ - CONTAINER_ID: 'container.id', + CONTAINER_ID: 'container.id'; /** * The container runtime managing this container. */ - CONTAINER_RUNTIME: 'container.runtime', + CONTAINER_RUNTIME: 'container.runtime'; /** * Name of the image the container was built on. */ - CONTAINER_IMAGE_NAME: 'container.image.name', + CONTAINER_IMAGE_NAME: 'container.image.name'; /** * Container image tag. */ - CONTAINER_IMAGE_TAG: 'container.image.tag', + CONTAINER_IMAGE_TAG: 'container.image.tag'; /** * Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier). */ - DEPLOYMENT_ENVIRONMENT: 'deployment.environment', + DEPLOYMENT_ENVIRONMENT: 'deployment.environment'; /** * A unique identifier representing the device. * * Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence. */ - DEVICE_ID: 'device.id', + DEVICE_ID: 'device.id'; /** * The model identifier for the device. * * Note: It's recommended this value represents a machine readable version of the model identifier rather than the market or consumer-friendly name of the device. */ - DEVICE_MODEL_IDENTIFIER: 'device.model.identifier', + DEVICE_MODEL_IDENTIFIER: 'device.model.identifier'; /** * The marketing name for the device model. * * Note: It's recommended this value represents a human readable version of the device model rather than a machine readable alternative. */ - DEVICE_MODEL_NAME: 'device.model.name', + DEVICE_MODEL_NAME: 'device.model.name'; /** * The name of the single function that this runtime instance executes. * * Note: This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-general.md#source-code-attributes) span attributes). */ - FAAS_NAME: 'faas.name', + FAAS_NAME: 'faas.name'; /** * The unique ID of the single function that this runtime instance executes. @@ -182,7 +741,7 @@ part of the ARN is not available without calling another AWS API which may be deemed too slow for a short-running lambda function. As an alternative, consider setting `faas.id` as a span attribute instead. */ - FAAS_ID: 'faas.id', + FAAS_ID: 'faas.id'; /** * The immutable version of the function being executed. @@ -197,411 +756,1091 @@ As an alternative, consider setting `faas.id` as a span attribute instead. [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically). * **Azure Functions:** Not applicable. Do not set this attribute. */ - FAAS_VERSION: 'faas.version', + FAAS_VERSION: 'faas.version'; /** * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. * * Note: * **AWS Lambda:** Use the (full) log stream name. */ - FAAS_INSTANCE: 'faas.instance', + FAAS_INSTANCE: 'faas.instance'; /** * The amount of memory available to the serverless function in MiB. * * Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information. */ - FAAS_MAX_MEMORY: 'faas.max_memory', + FAAS_MAX_MEMORY: 'faas.max_memory'; /** * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. */ - HOST_ID: 'host.id', + HOST_ID: 'host.id'; /** * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user. */ - HOST_NAME: 'host.name', + HOST_NAME: 'host.name'; /** * Type of host. For Cloud, this must be the machine type. */ - HOST_TYPE: 'host.type', + HOST_TYPE: 'host.type'; /** * The CPU architecture the host system is running on. */ - HOST_ARCH: 'host.arch', + HOST_ARCH: 'host.arch'; /** * Name of the VM image or OS install the host was instantiated from. */ - HOST_IMAGE_NAME: 'host.image.name', + HOST_IMAGE_NAME: 'host.image.name'; /** * VM image ID. For Cloud, this value is from the provider. */ - HOST_IMAGE_ID: 'host.image.id', + HOST_IMAGE_ID: 'host.image.id'; /** - * The version string of the VM image as defined in [Version SpanAttributes](README.md#version-attributes). + * The version string of the VM image as defined in [Version Attributes](README.md#version-attributes). */ - HOST_IMAGE_VERSION: 'host.image.version', + HOST_IMAGE_VERSION: 'host.image.version'; /** * The name of the cluster. */ - K8S_CLUSTER_NAME: 'k8s.cluster.name', + K8S_CLUSTER_NAME: 'k8s.cluster.name'; /** * The name of the Node. */ - K8S_NODE_NAME: 'k8s.node.name', + K8S_NODE_NAME: 'k8s.node.name'; /** * The UID of the Node. */ - K8S_NODE_UID: 'k8s.node.uid', + K8S_NODE_UID: 'k8s.node.uid'; /** * The name of the namespace that the pod is running in. */ - K8S_NAMESPACE_NAME: 'k8s.namespace.name', + K8S_NAMESPACE_NAME: 'k8s.namespace.name'; /** * The UID of the Pod. */ - K8S_POD_UID: 'k8s.pod.uid', + K8S_POD_UID: 'k8s.pod.uid'; /** * The name of the Pod. */ - K8S_POD_NAME: 'k8s.pod.name', + K8S_POD_NAME: 'k8s.pod.name'; /** * The name of the Container in a Pod template. */ - K8S_CONTAINER_NAME: 'k8s.container.name', + K8S_CONTAINER_NAME: 'k8s.container.name'; /** * The UID of the ReplicaSet. */ - K8S_REPLICASET_UID: 'k8s.replicaset.uid', + K8S_REPLICASET_UID: 'k8s.replicaset.uid'; /** * The name of the ReplicaSet. */ - K8S_REPLICASET_NAME: 'k8s.replicaset.name', + K8S_REPLICASET_NAME: 'k8s.replicaset.name'; /** * The UID of the Deployment. */ - K8S_DEPLOYMENT_UID: 'k8s.deployment.uid', + K8S_DEPLOYMENT_UID: 'k8s.deployment.uid'; /** * The name of the Deployment. */ - K8S_DEPLOYMENT_NAME: 'k8s.deployment.name', + K8S_DEPLOYMENT_NAME: 'k8s.deployment.name'; /** * The UID of the StatefulSet. */ - K8S_STATEFULSET_UID: 'k8s.statefulset.uid', + K8S_STATEFULSET_UID: 'k8s.statefulset.uid'; /** * The name of the StatefulSet. */ - K8S_STATEFULSET_NAME: 'k8s.statefulset.name', + K8S_STATEFULSET_NAME: 'k8s.statefulset.name'; /** * The UID of the DaemonSet. */ - K8S_DAEMONSET_UID: 'k8s.daemonset.uid', + K8S_DAEMONSET_UID: 'k8s.daemonset.uid'; /** * The name of the DaemonSet. */ - K8S_DAEMONSET_NAME: 'k8s.daemonset.name', + K8S_DAEMONSET_NAME: 'k8s.daemonset.name'; /** * The UID of the Job. */ - K8S_JOB_UID: 'k8s.job.uid', + K8S_JOB_UID: 'k8s.job.uid'; /** * The name of the Job. */ - K8S_JOB_NAME: 'k8s.job.name', + K8S_JOB_NAME: 'k8s.job.name'; /** * The UID of the CronJob. */ - K8S_CRONJOB_UID: 'k8s.cronjob.uid', + K8S_CRONJOB_UID: 'k8s.cronjob.uid'; /** * The name of the CronJob. */ - K8S_CRONJOB_NAME: 'k8s.cronjob.name', + K8S_CRONJOB_NAME: 'k8s.cronjob.name'; /** * The operating system type. */ - OS_TYPE: 'os.type', + OS_TYPE: 'os.type'; /** * Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands. */ - OS_DESCRIPTION: 'os.description', + OS_DESCRIPTION: 'os.description'; /** * Human readable operating system name. */ - OS_NAME: 'os.name', + OS_NAME: 'os.name'; /** - * The version string of the operating system as defined in [Version SpanAttributes](../../resource/semantic_conventions/README.md#version-attributes). + * The version string of the operating system as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes). */ - OS_VERSION: 'os.version', + OS_VERSION: 'os.version'; /** * Process identifier (PID). */ - PROCESS_PID: 'process.pid', + PROCESS_PID: 'process.pid'; /** * The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`. */ - PROCESS_EXECUTABLE_NAME: 'process.executable.name', + PROCESS_EXECUTABLE_NAME: 'process.executable.name'; /** * The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`. */ - PROCESS_EXECUTABLE_PATH: 'process.executable.path', + PROCESS_EXECUTABLE_PATH: 'process.executable.path'; /** * The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. */ - PROCESS_COMMAND: 'process.command', + PROCESS_COMMAND: 'process.command'; /** * The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. */ - PROCESS_COMMAND_LINE: 'process.command_line', + PROCESS_COMMAND_LINE: 'process.command_line'; /** * All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. */ - PROCESS_COMMAND_ARGS: 'process.command_args', + PROCESS_COMMAND_ARGS: 'process.command_args'; /** * The username of the user that owns the process. */ - PROCESS_OWNER: 'process.owner', + PROCESS_OWNER: 'process.owner'; /** * The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. */ - PROCESS_RUNTIME_NAME: 'process.runtime.name', + PROCESS_RUNTIME_NAME: 'process.runtime.name'; /** * The version of the runtime of this process, as returned by the runtime without modification. */ - PROCESS_RUNTIME_VERSION: 'process.runtime.version', + PROCESS_RUNTIME_VERSION: 'process.runtime.version'; /** * An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. */ - PROCESS_RUNTIME_DESCRIPTION: 'process.runtime.description', + PROCESS_RUNTIME_DESCRIPTION: 'process.runtime.description'; /** * Logical name of the service. * * Note: MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`. */ - SERVICE_NAME: 'service.name', + SERVICE_NAME: 'service.name'; /** * A namespace for `service.name`. * * Note: A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace. */ - SERVICE_NAMESPACE: 'service.namespace', + SERVICE_NAMESPACE: 'service.namespace'; /** * The string ID of the service instance. * * Note: MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts). If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations). */ - SERVICE_INSTANCE_ID: 'service.instance.id', + SERVICE_INSTANCE_ID: 'service.instance.id'; /** * The version string of the service API or implementation. */ - SERVICE_VERSION: 'service.version', + SERVICE_VERSION: 'service.version'; /** * The name of the telemetry SDK as defined above. */ - TELEMETRY_SDK_NAME: 'telemetry.sdk.name', + TELEMETRY_SDK_NAME: 'telemetry.sdk.name'; /** * The language of the telemetry SDK. */ - TELEMETRY_SDK_LANGUAGE: 'telemetry.sdk.language', + TELEMETRY_SDK_LANGUAGE: 'telemetry.sdk.language'; /** * The version string of the telemetry SDK. */ - TELEMETRY_SDK_VERSION: 'telemetry.sdk.version', + TELEMETRY_SDK_VERSION: 'telemetry.sdk.version'; /** * The version string of the auto instrumentation agent, if used. */ - TELEMETRY_AUTO_VERSION: 'telemetry.auto.version', + TELEMETRY_AUTO_VERSION: 'telemetry.auto.version'; /** * The name of the web engine. */ - WEBENGINE_NAME: 'webengine.name', + WEBENGINE_NAME: 'webengine.name'; /** * The version of the web engine. */ - WEBENGINE_VERSION: 'webengine.version', + WEBENGINE_VERSION: 'webengine.version'; /** * Additional description of the web engine (e.g. detailed version and edition information). */ - WEBENGINE_DESCRIPTION: 'webengine.description', + WEBENGINE_DESCRIPTION: 'webengine.description'; }; -export const CloudProviderValues = { +/** + * Create exported Value Map for SemanticResourceAttributes values + * @deprecated Use the SEMRESATTRS_XXXXX constants rather than the SemanticResourceAttributes.XXXXX for bundle minification + */ +export const SemanticResourceAttributes: SemanticResourceAttributes = + /*#__PURE__*/ createConstMap([ + TMP_CLOUD_PROVIDER, + TMP_CLOUD_ACCOUNT_ID, + TMP_CLOUD_REGION, + TMP_CLOUD_AVAILABILITY_ZONE, + TMP_CLOUD_PLATFORM, + TMP_AWS_ECS_CONTAINER_ARN, + TMP_AWS_ECS_CLUSTER_ARN, + TMP_AWS_ECS_LAUNCHTYPE, + TMP_AWS_ECS_TASK_ARN, + TMP_AWS_ECS_TASK_FAMILY, + TMP_AWS_ECS_TASK_REVISION, + TMP_AWS_EKS_CLUSTER_ARN, + TMP_AWS_LOG_GROUP_NAMES, + TMP_AWS_LOG_GROUP_ARNS, + TMP_AWS_LOG_STREAM_NAMES, + TMP_AWS_LOG_STREAM_ARNS, + TMP_CONTAINER_NAME, + TMP_CONTAINER_ID, + TMP_CONTAINER_RUNTIME, + TMP_CONTAINER_IMAGE_NAME, + TMP_CONTAINER_IMAGE_TAG, + TMP_DEPLOYMENT_ENVIRONMENT, + TMP_DEVICE_ID, + TMP_DEVICE_MODEL_IDENTIFIER, + TMP_DEVICE_MODEL_NAME, + TMP_FAAS_NAME, + TMP_FAAS_ID, + TMP_FAAS_VERSION, + TMP_FAAS_INSTANCE, + TMP_FAAS_MAX_MEMORY, + TMP_HOST_ID, + TMP_HOST_NAME, + TMP_HOST_TYPE, + TMP_HOST_ARCH, + TMP_HOST_IMAGE_NAME, + TMP_HOST_IMAGE_ID, + TMP_HOST_IMAGE_VERSION, + TMP_K8S_CLUSTER_NAME, + TMP_K8S_NODE_NAME, + TMP_K8S_NODE_UID, + TMP_K8S_NAMESPACE_NAME, + TMP_K8S_POD_UID, + TMP_K8S_POD_NAME, + TMP_K8S_CONTAINER_NAME, + TMP_K8S_REPLICASET_UID, + TMP_K8S_REPLICASET_NAME, + TMP_K8S_DEPLOYMENT_UID, + TMP_K8S_DEPLOYMENT_NAME, + TMP_K8S_STATEFULSET_UID, + TMP_K8S_STATEFULSET_NAME, + TMP_K8S_DAEMONSET_UID, + TMP_K8S_DAEMONSET_NAME, + TMP_K8S_JOB_UID, + TMP_K8S_JOB_NAME, + TMP_K8S_CRONJOB_UID, + TMP_K8S_CRONJOB_NAME, + TMP_OS_TYPE, + TMP_OS_DESCRIPTION, + TMP_OS_NAME, + TMP_OS_VERSION, + TMP_PROCESS_PID, + TMP_PROCESS_EXECUTABLE_NAME, + TMP_PROCESS_EXECUTABLE_PATH, + TMP_PROCESS_COMMAND, + TMP_PROCESS_COMMAND_LINE, + TMP_PROCESS_COMMAND_ARGS, + TMP_PROCESS_OWNER, + TMP_PROCESS_RUNTIME_NAME, + TMP_PROCESS_RUNTIME_VERSION, + TMP_PROCESS_RUNTIME_DESCRIPTION, + TMP_SERVICE_NAME, + TMP_SERVICE_NAMESPACE, + TMP_SERVICE_INSTANCE_ID, + TMP_SERVICE_VERSION, + TMP_TELEMETRY_SDK_NAME, + TMP_TELEMETRY_SDK_LANGUAGE, + TMP_TELEMETRY_SDK_VERSION, + TMP_TELEMETRY_AUTO_VERSION, + TMP_WEBENGINE_NAME, + TMP_WEBENGINE_VERSION, + TMP_WEBENGINE_DESCRIPTION, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for CloudProviderValues enum definition + * + * Name of the cloud provider. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD = 'alibaba_cloud'; +const TMP_CLOUDPROVIDERVALUES_AWS = 'aws'; +const TMP_CLOUDPROVIDERVALUES_AZURE = 'azure'; +const TMP_CLOUDPROVIDERVALUES_GCP = 'gcp'; + +/** + * Name of the cloud provider. + */ +export const CLOUDPROVIDERVALUES_ALIBABA_CLOUD = + TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD; + +/** + * Name of the cloud provider. + */ +export const CLOUDPROVIDERVALUES_AWS = TMP_CLOUDPROVIDERVALUES_AWS; + +/** + * Name of the cloud provider. + */ +export const CLOUDPROVIDERVALUES_AZURE = TMP_CLOUDPROVIDERVALUES_AZURE; + +/** + * Name of the cloud provider. + */ +export const CLOUDPROVIDERVALUES_GCP = TMP_CLOUDPROVIDERVALUES_GCP; + +/** + * Identifies the Values for CloudProviderValues enum definition + * + * Name of the cloud provider. + * @deprecated Use the CLOUDPROVIDERVALUES_XXXXX constants rather than the CloudProviderValues.XXXXX for bundle minification. + */ +export type CloudProviderValues = { /** Alibaba Cloud. */ - ALIBABA_CLOUD: 'alibaba_cloud', + ALIBABA_CLOUD: 'alibaba_cloud'; + /** Amazon Web Services. */ - AWS: 'aws', + AWS: 'aws'; + /** Microsoft Azure. */ - AZURE: 'azure', + AZURE: 'azure'; + /** Google Cloud Platform. */ - GCP: 'gcp', -} as const; -export type CloudProviderValues = - (typeof CloudProviderValues)[keyof typeof CloudProviderValues]; + GCP: 'gcp'; +}; + +/** + * The constant map of values for CloudProviderValues. + * @deprecated Use the CLOUDPROVIDERVALUES_XXXXX constants rather than the CloudProviderValues.XXXXX for bundle minification. + */ +export const CloudProviderValues: CloudProviderValues = + /*#__PURE__*/ createConstMap([ + TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD, + TMP_CLOUDPROVIDERVALUES_AWS, + TMP_CLOUDPROVIDERVALUES_AZURE, + TMP_CLOUDPROVIDERVALUES_GCP, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for CloudPlatformValues enum definition + * + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS = 'alibaba_cloud_ecs'; +const TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC = 'alibaba_cloud_fc'; +const TMP_CLOUDPLATFORMVALUES_AWS_EC2 = 'aws_ec2'; +const TMP_CLOUDPLATFORMVALUES_AWS_ECS = 'aws_ecs'; +const TMP_CLOUDPLATFORMVALUES_AWS_EKS = 'aws_eks'; +const TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA = 'aws_lambda'; +const TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK = 'aws_elastic_beanstalk'; +const TMP_CLOUDPLATFORMVALUES_AZURE_VM = 'azure_vm'; +const TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES = + 'azure_container_instances'; +const TMP_CLOUDPLATFORMVALUES_AZURE_AKS = 'azure_aks'; +const TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS = 'azure_functions'; +const TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE = 'azure_app_service'; +const TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE = 'gcp_compute_engine'; +const TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN = 'gcp_cloud_run'; +const TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE = 'gcp_kubernetes_engine'; +const TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS = 'gcp_cloud_functions'; +const TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE = 'gcp_app_engine'; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS = + TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC = + TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AWS_EC2 = TMP_CLOUDPLATFORMVALUES_AWS_EC2; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AWS_ECS = TMP_CLOUDPLATFORMVALUES_AWS_ECS; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AWS_EKS = TMP_CLOUDPLATFORMVALUES_AWS_EKS; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AWS_LAMBDA = + TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK = + TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AZURE_VM = TMP_CLOUDPLATFORMVALUES_AZURE_VM; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES = + TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AZURE_AKS = TMP_CLOUDPLATFORMVALUES_AZURE_AKS; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AZURE_FUNCTIONS = + TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS; -export const CloudPlatformValues = { +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_AZURE_APP_SERVICE = + TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE = + TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_GCP_CLOUD_RUN = + TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE = + TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS = + TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS; + +/** + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + */ +export const CLOUDPLATFORMVALUES_GCP_APP_ENGINE = + TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE; + +/** + * Identifies the Values for CloudPlatformValues enum definition + * + * The cloud platform in use. + * + * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`. + * @deprecated Use the CLOUDPLATFORMVALUES_XXXXX constants rather than the CloudPlatformValues.XXXXX for bundle minification. + */ +export type CloudPlatformValues = { /** Alibaba Cloud Elastic Compute Service. */ - ALIBABA_CLOUD_ECS: 'alibaba_cloud_ecs', + ALIBABA_CLOUD_ECS: 'alibaba_cloud_ecs'; + /** Alibaba Cloud Function Compute. */ - ALIBABA_CLOUD_FC: 'alibaba_cloud_fc', + ALIBABA_CLOUD_FC: 'alibaba_cloud_fc'; + /** AWS Elastic Compute Cloud. */ - AWS_EC2: 'aws_ec2', + AWS_EC2: 'aws_ec2'; + /** AWS Elastic Container Service. */ - AWS_ECS: 'aws_ecs', + AWS_ECS: 'aws_ecs'; + /** AWS Elastic Kubernetes Service. */ - AWS_EKS: 'aws_eks', + AWS_EKS: 'aws_eks'; + /** AWS Lambda. */ - AWS_LAMBDA: 'aws_lambda', + AWS_LAMBDA: 'aws_lambda'; + /** AWS Elastic Beanstalk. */ - AWS_ELASTIC_BEANSTALK: 'aws_elastic_beanstalk', + AWS_ELASTIC_BEANSTALK: 'aws_elastic_beanstalk'; + /** Azure Virtual Machines. */ - AZURE_VM: 'azure_vm', + AZURE_VM: 'azure_vm'; + /** Azure Container Instances. */ - AZURE_CONTAINER_INSTANCES: 'azure_container_instances', + AZURE_CONTAINER_INSTANCES: 'azure_container_instances'; + /** Azure Kubernetes Service. */ - AZURE_AKS: 'azure_aks', + AZURE_AKS: 'azure_aks'; + /** Azure Functions. */ - AZURE_FUNCTIONS: 'azure_functions', + AZURE_FUNCTIONS: 'azure_functions'; + /** Azure App Service. */ - AZURE_APP_SERVICE: 'azure_app_service', + AZURE_APP_SERVICE: 'azure_app_service'; + /** Google Cloud Compute Engine (GCE). */ - GCP_COMPUTE_ENGINE: 'gcp_compute_engine', + GCP_COMPUTE_ENGINE: 'gcp_compute_engine'; + /** Google Cloud Run. */ - GCP_CLOUD_RUN: 'gcp_cloud_run', + GCP_CLOUD_RUN: 'gcp_cloud_run'; + /** Google Cloud Kubernetes Engine (GKE). */ - GCP_KUBERNETES_ENGINE: 'gcp_kubernetes_engine', + GCP_KUBERNETES_ENGINE: 'gcp_kubernetes_engine'; + /** Google Cloud Functions (GCF). */ - GCP_CLOUD_FUNCTIONS: 'gcp_cloud_functions', + GCP_CLOUD_FUNCTIONS: 'gcp_cloud_functions'; + /** Google Cloud App Engine (GAE). */ - GCP_APP_ENGINE: 'gcp_app_engine', -} as const; -export type CloudPlatformValues = - (typeof CloudPlatformValues)[keyof typeof CloudPlatformValues]; + GCP_APP_ENGINE: 'gcp_app_engine'; +}; + +/** + * The constant map of values for CloudPlatformValues. + * @deprecated Use the CLOUDPLATFORMVALUES_XXXXX constants rather than the CloudPlatformValues.XXXXX for bundle minification. + */ +export const CloudPlatformValues: CloudPlatformValues = + /*#__PURE__*/ createConstMap([ + TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS, + TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC, + TMP_CLOUDPLATFORMVALUES_AWS_EC2, + TMP_CLOUDPLATFORMVALUES_AWS_ECS, + TMP_CLOUDPLATFORMVALUES_AWS_EKS, + TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA, + TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK, + TMP_CLOUDPLATFORMVALUES_AZURE_VM, + TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES, + TMP_CLOUDPLATFORMVALUES_AZURE_AKS, + TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS, + TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE, + TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE, + TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN, + TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE, + TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS, + TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for AwsEcsLaunchtypeValues enum definition + * + * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_AWSECSLAUNCHTYPEVALUES_EC2 = 'ec2'; +const TMP_AWSECSLAUNCHTYPEVALUES_FARGATE = 'fargate'; + +/** + * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + */ +export const AWSECSLAUNCHTYPEVALUES_EC2 = TMP_AWSECSLAUNCHTYPEVALUES_EC2; + +/** + * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + */ +export const AWSECSLAUNCHTYPEVALUES_FARGATE = + TMP_AWSECSLAUNCHTYPEVALUES_FARGATE; -export const AwsEcsLaunchtypeValues = { +/** + * Identifies the Values for AwsEcsLaunchtypeValues enum definition + * + * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. + * @deprecated Use the AWSECSLAUNCHTYPEVALUES_XXXXX constants rather than the AwsEcsLaunchtypeValues.XXXXX for bundle minification. + */ +export type AwsEcsLaunchtypeValues = { /** ec2. */ - EC2: 'ec2', + EC2: 'ec2'; + /** fargate. */ - FARGATE: 'fargate', -} as const; -export type AwsEcsLaunchtypeValues = - (typeof AwsEcsLaunchtypeValues)[keyof typeof AwsEcsLaunchtypeValues]; + FARGATE: 'fargate'; +}; + +/** + * The constant map of values for AwsEcsLaunchtypeValues. + * @deprecated Use the AWSECSLAUNCHTYPEVALUES_XXXXX constants rather than the AwsEcsLaunchtypeValues.XXXXX for bundle minification. + */ +export const AwsEcsLaunchtypeValues: AwsEcsLaunchtypeValues = + /*#__PURE__*/ createConstMap([ + TMP_AWSECSLAUNCHTYPEVALUES_EC2, + TMP_AWSECSLAUNCHTYPEVALUES_FARGATE, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for HostArchValues enum definition + * + * The CPU architecture the host system is running on. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_HOSTARCHVALUES_AMD64 = 'amd64'; +const TMP_HOSTARCHVALUES_ARM32 = 'arm32'; +const TMP_HOSTARCHVALUES_ARM64 = 'arm64'; +const TMP_HOSTARCHVALUES_IA64 = 'ia64'; +const TMP_HOSTARCHVALUES_PPC32 = 'ppc32'; +const TMP_HOSTARCHVALUES_PPC64 = 'ppc64'; +const TMP_HOSTARCHVALUES_X86 = 'x86'; + +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_AMD64 = TMP_HOSTARCHVALUES_AMD64; + +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_ARM32 = TMP_HOSTARCHVALUES_ARM32; + +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_ARM64 = TMP_HOSTARCHVALUES_ARM64; + +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_IA64 = TMP_HOSTARCHVALUES_IA64; + +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_PPC32 = TMP_HOSTARCHVALUES_PPC32; -export const HostArchValues = { +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_PPC64 = TMP_HOSTARCHVALUES_PPC64; + +/** + * The CPU architecture the host system is running on. + */ +export const HOSTARCHVALUES_X86 = TMP_HOSTARCHVALUES_X86; + +/** + * Identifies the Values for HostArchValues enum definition + * + * The CPU architecture the host system is running on. + * @deprecated Use the HOSTARCHVALUES_XXXXX constants rather than the HostArchValues.XXXXX for bundle minification. + */ +export type HostArchValues = { /** AMD64. */ - AMD64: 'amd64', + AMD64: 'amd64'; + /** ARM32. */ - ARM32: 'arm32', + ARM32: 'arm32'; + /** ARM64. */ - ARM64: 'arm64', + ARM64: 'arm64'; + /** Itanium. */ - IA64: 'ia64', + IA64: 'ia64'; + /** 32-bit PowerPC. */ - PPC32: 'ppc32', + PPC32: 'ppc32'; + /** 64-bit PowerPC. */ - PPC64: 'ppc64', + PPC64: 'ppc64'; + /** 32-bit x86. */ - X86: 'x86', -} as const; -export type HostArchValues = - (typeof HostArchValues)[keyof typeof HostArchValues]; + X86: 'x86'; +}; + +/** + * The constant map of values for HostArchValues. + * @deprecated Use the HOSTARCHVALUES_XXXXX constants rather than the HostArchValues.XXXXX for bundle minification. + */ +export const HostArchValues: HostArchValues = + /*#__PURE__*/ createConstMap([ + TMP_HOSTARCHVALUES_AMD64, + TMP_HOSTARCHVALUES_ARM32, + TMP_HOSTARCHVALUES_ARM64, + TMP_HOSTARCHVALUES_IA64, + TMP_HOSTARCHVALUES_PPC32, + TMP_HOSTARCHVALUES_PPC64, + TMP_HOSTARCHVALUES_X86, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for OsTypeValues enum definition + * + * The operating system type. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_OSTYPEVALUES_WINDOWS = 'windows'; +const TMP_OSTYPEVALUES_LINUX = 'linux'; +const TMP_OSTYPEVALUES_DARWIN = 'darwin'; +const TMP_OSTYPEVALUES_FREEBSD = 'freebsd'; +const TMP_OSTYPEVALUES_NETBSD = 'netbsd'; +const TMP_OSTYPEVALUES_OPENBSD = 'openbsd'; +const TMP_OSTYPEVALUES_DRAGONFLYBSD = 'dragonflybsd'; +const TMP_OSTYPEVALUES_HPUX = 'hpux'; +const TMP_OSTYPEVALUES_AIX = 'aix'; +const TMP_OSTYPEVALUES_SOLARIS = 'solaris'; +const TMP_OSTYPEVALUES_Z_OS = 'z_os'; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_WINDOWS = TMP_OSTYPEVALUES_WINDOWS; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_LINUX = TMP_OSTYPEVALUES_LINUX; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_DARWIN = TMP_OSTYPEVALUES_DARWIN; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_FREEBSD = TMP_OSTYPEVALUES_FREEBSD; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_NETBSD = TMP_OSTYPEVALUES_NETBSD; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_OPENBSD = TMP_OSTYPEVALUES_OPENBSD; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_DRAGONFLYBSD = TMP_OSTYPEVALUES_DRAGONFLYBSD; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_HPUX = TMP_OSTYPEVALUES_HPUX; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_AIX = TMP_OSTYPEVALUES_AIX; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_SOLARIS = TMP_OSTYPEVALUES_SOLARIS; + +/** + * The operating system type. + */ +export const OSTYPEVALUES_Z_OS = TMP_OSTYPEVALUES_Z_OS; -export const OsTypeValues = { +/** + * Identifies the Values for OsTypeValues enum definition + * + * The operating system type. + * @deprecated Use the OSTYPEVALUES_XXXXX constants rather than the OsTypeValues.XXXXX for bundle minification. + */ +export type OsTypeValues = { /** Microsoft Windows. */ - WINDOWS: 'windows', + WINDOWS: 'windows'; + /** Linux. */ - LINUX: 'linux', + LINUX: 'linux'; + /** Apple Darwin. */ - DARWIN: 'darwin', + DARWIN: 'darwin'; + /** FreeBSD. */ - FREEBSD: 'freebsd', + FREEBSD: 'freebsd'; + /** NetBSD. */ - NETBSD: 'netbsd', + NETBSD: 'netbsd'; + /** OpenBSD. */ - OPENBSD: 'openbsd', + OPENBSD: 'openbsd'; + /** DragonFly BSD. */ - DRAGONFLYBSD: 'dragonflybsd', + DRAGONFLYBSD: 'dragonflybsd'; + /** HP-UX (Hewlett Packard Unix). */ - HPUX: 'hpux', + HPUX: 'hpux'; + /** AIX (Advanced Interactive eXecutive). */ - AIX: 'aix', + AIX: 'aix'; + /** Oracle Solaris. */ - SOLARIS: 'solaris', + SOLARIS: 'solaris'; + /** IBM z/OS. */ - Z_OS: 'z_os', -} as const; -export type OsTypeValues = (typeof OsTypeValues)[keyof typeof OsTypeValues]; + Z_OS: 'z_os'; +}; + +/** + * The constant map of values for OsTypeValues. + * @deprecated Use the OSTYPEVALUES_XXXXX constants rather than the OsTypeValues.XXXXX for bundle minification. + */ +export const OsTypeValues: OsTypeValues = + /*#__PURE__*/ createConstMap([ + TMP_OSTYPEVALUES_WINDOWS, + TMP_OSTYPEVALUES_LINUX, + TMP_OSTYPEVALUES_DARWIN, + TMP_OSTYPEVALUES_FREEBSD, + TMP_OSTYPEVALUES_NETBSD, + TMP_OSTYPEVALUES_OPENBSD, + TMP_OSTYPEVALUES_DRAGONFLYBSD, + TMP_OSTYPEVALUES_HPUX, + TMP_OSTYPEVALUES_AIX, + TMP_OSTYPEVALUES_SOLARIS, + TMP_OSTYPEVALUES_Z_OS, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for TelemetrySdkLanguageValues enum definition + * + * The language of the telemetry SDK. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_TELEMETRYSDKLANGUAGEVALUES_CPP = 'cpp'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET = 'dotnet'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG = 'erlang'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_GO = 'go'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA = 'java'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS = 'nodejs'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_PHP = 'php'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON = 'python'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY = 'ruby'; +const TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS = 'webjs'; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_CPP = + TMP_TELEMETRYSDKLANGUAGEVALUES_CPP; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_DOTNET = + TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_ERLANG = + TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_GO = TMP_TELEMETRYSDKLANGUAGEVALUES_GO; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_JAVA = + TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA; -export const TelemetrySdkLanguageValues = { +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_NODEJS = + TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_PHP = + TMP_TELEMETRYSDKLANGUAGEVALUES_PHP; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_PYTHON = + TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_RUBY = + TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY; + +/** + * The language of the telemetry SDK. + */ +export const TELEMETRYSDKLANGUAGEVALUES_WEBJS = + TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS; + +/** + * Identifies the Values for TelemetrySdkLanguageValues enum definition + * + * The language of the telemetry SDK. + * @deprecated Use the TELEMETRYSDKLANGUAGEVALUES_XXXXX constants rather than the TelemetrySdkLanguageValues.XXXXX for bundle minification. + */ +export type TelemetrySdkLanguageValues = { /** cpp. */ - CPP: 'cpp', + CPP: 'cpp'; + /** dotnet. */ - DOTNET: 'dotnet', + DOTNET: 'dotnet'; + /** erlang. */ - ERLANG: 'erlang', + ERLANG: 'erlang'; + /** go. */ - GO: 'go', + GO: 'go'; + /** java. */ - JAVA: 'java', + JAVA: 'java'; + /** nodejs. */ - NODEJS: 'nodejs', + NODEJS: 'nodejs'; + /** php. */ - PHP: 'php', + PHP: 'php'; + /** python. */ - PYTHON: 'python', + PYTHON: 'python'; + /** ruby. */ - RUBY: 'ruby', + RUBY: 'ruby'; + /** webjs. */ - WEBJS: 'webjs', -} as const; -export type TelemetrySdkLanguageValues = - (typeof TelemetrySdkLanguageValues)[keyof typeof TelemetrySdkLanguageValues]; + WEBJS: 'webjs'; +}; + +/** + * The constant map of values for TelemetrySdkLanguageValues. + * @deprecated Use the TELEMETRYSDKLANGUAGEVALUES_XXXXX constants rather than the TelemetrySdkLanguageValues.XXXXX for bundle minification. + */ +export const TelemetrySdkLanguageValues: TelemetrySdkLanguageValues = + /*#__PURE__*/ createConstMap([ + TMP_TELEMETRYSDKLANGUAGEVALUES_CPP, + TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET, + TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG, + TMP_TELEMETRYSDKLANGUAGEVALUES_GO, + TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA, + TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS, + TMP_TELEMETRYSDKLANGUAGEVALUES_PHP, + TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON, + TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY, + TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS, + ]); diff --git a/packages/opentelemetry-semantic-conventions/src/trace/SemanticAttributes.ts b/packages/opentelemetry-semantic-conventions/src/trace/SemanticAttributes.ts index 6d12b0f89a..cc87977a82 100644 --- a/packages/opentelemetry-semantic-conventions/src/trace/SemanticAttributes.ts +++ b/packages/opentelemetry-semantic-conventions/src/trace/SemanticAttributes.ts @@ -14,142 +14,1036 @@ * limitations under the License. */ +import { createConstMap } from '../internal/utils'; + +//---------------------------------------------------------------------------------------------------------- // DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates//templates/SemanticAttributes.ts.j2 -export const SemanticAttributes = { +//---------------------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------------------- +// Constant values for SemanticAttributes +//---------------------------------------------------------------------------------------------------------- + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn'; +const TMP_DB_SYSTEM = 'db.system'; +const TMP_DB_CONNECTION_STRING = 'db.connection_string'; +const TMP_DB_USER = 'db.user'; +const TMP_DB_JDBC_DRIVER_CLASSNAME = 'db.jdbc.driver_classname'; +const TMP_DB_NAME = 'db.name'; +const TMP_DB_STATEMENT = 'db.statement'; +const TMP_DB_OPERATION = 'db.operation'; +const TMP_DB_MSSQL_INSTANCE_NAME = 'db.mssql.instance_name'; +const TMP_DB_CASSANDRA_KEYSPACE = 'db.cassandra.keyspace'; +const TMP_DB_CASSANDRA_PAGE_SIZE = 'db.cassandra.page_size'; +const TMP_DB_CASSANDRA_CONSISTENCY_LEVEL = 'db.cassandra.consistency_level'; +const TMP_DB_CASSANDRA_TABLE = 'db.cassandra.table'; +const TMP_DB_CASSANDRA_IDEMPOTENCE = 'db.cassandra.idempotence'; +const TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = + 'db.cassandra.speculative_execution_count'; +const TMP_DB_CASSANDRA_COORDINATOR_ID = 'db.cassandra.coordinator.id'; +const TMP_DB_CASSANDRA_COORDINATOR_DC = 'db.cassandra.coordinator.dc'; +const TMP_DB_HBASE_NAMESPACE = 'db.hbase.namespace'; +const TMP_DB_REDIS_DATABASE_INDEX = 'db.redis.database_index'; +const TMP_DB_MONGODB_COLLECTION = 'db.mongodb.collection'; +const TMP_DB_SQL_TABLE = 'db.sql.table'; +const TMP_EXCEPTION_TYPE = 'exception.type'; +const TMP_EXCEPTION_MESSAGE = 'exception.message'; +const TMP_EXCEPTION_STACKTRACE = 'exception.stacktrace'; +const TMP_EXCEPTION_ESCAPED = 'exception.escaped'; +const TMP_FAAS_TRIGGER = 'faas.trigger'; +const TMP_FAAS_EXECUTION = 'faas.execution'; +const TMP_FAAS_DOCUMENT_COLLECTION = 'faas.document.collection'; +const TMP_FAAS_DOCUMENT_OPERATION = 'faas.document.operation'; +const TMP_FAAS_DOCUMENT_TIME = 'faas.document.time'; +const TMP_FAAS_DOCUMENT_NAME = 'faas.document.name'; +const TMP_FAAS_TIME = 'faas.time'; +const TMP_FAAS_CRON = 'faas.cron'; +const TMP_FAAS_COLDSTART = 'faas.coldstart'; +const TMP_FAAS_INVOKED_NAME = 'faas.invoked_name'; +const TMP_FAAS_INVOKED_PROVIDER = 'faas.invoked_provider'; +const TMP_FAAS_INVOKED_REGION = 'faas.invoked_region'; +const TMP_NET_TRANSPORT = 'net.transport'; +const TMP_NET_PEER_IP = 'net.peer.ip'; +const TMP_NET_PEER_PORT = 'net.peer.port'; +const TMP_NET_PEER_NAME = 'net.peer.name'; +const TMP_NET_HOST_IP = 'net.host.ip'; +const TMP_NET_HOST_PORT = 'net.host.port'; +const TMP_NET_HOST_NAME = 'net.host.name'; +const TMP_NET_HOST_CONNECTION_TYPE = 'net.host.connection.type'; +const TMP_NET_HOST_CONNECTION_SUBTYPE = 'net.host.connection.subtype'; +const TMP_NET_HOST_CARRIER_NAME = 'net.host.carrier.name'; +const TMP_NET_HOST_CARRIER_MCC = 'net.host.carrier.mcc'; +const TMP_NET_HOST_CARRIER_MNC = 'net.host.carrier.mnc'; +const TMP_NET_HOST_CARRIER_ICC = 'net.host.carrier.icc'; +const TMP_PEER_SERVICE = 'peer.service'; +const TMP_ENDUSER_ID = 'enduser.id'; +const TMP_ENDUSER_ROLE = 'enduser.role'; +const TMP_ENDUSER_SCOPE = 'enduser.scope'; +const TMP_THREAD_ID = 'thread.id'; +const TMP_THREAD_NAME = 'thread.name'; +const TMP_CODE_FUNCTION = 'code.function'; +const TMP_CODE_NAMESPACE = 'code.namespace'; +const TMP_CODE_FILEPATH = 'code.filepath'; +const TMP_CODE_LINENO = 'code.lineno'; +const TMP_HTTP_METHOD = 'http.method'; +const TMP_HTTP_URL = 'http.url'; +const TMP_HTTP_TARGET = 'http.target'; +const TMP_HTTP_HOST = 'http.host'; +const TMP_HTTP_SCHEME = 'http.scheme'; +const TMP_HTTP_STATUS_CODE = 'http.status_code'; +const TMP_HTTP_FLAVOR = 'http.flavor'; +const TMP_HTTP_USER_AGENT = 'http.user_agent'; +const TMP_HTTP_REQUEST_CONTENT_LENGTH = 'http.request_content_length'; +const TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = + 'http.request_content_length_uncompressed'; +const TMP_HTTP_RESPONSE_CONTENT_LENGTH = 'http.response_content_length'; +const TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = + 'http.response_content_length_uncompressed'; +const TMP_HTTP_SERVER_NAME = 'http.server_name'; +const TMP_HTTP_ROUTE = 'http.route'; +const TMP_HTTP_CLIENT_IP = 'http.client_ip'; +const TMP_AWS_DYNAMODB_TABLE_NAMES = 'aws.dynamodb.table_names'; +const TMP_AWS_DYNAMODB_CONSUMED_CAPACITY = 'aws.dynamodb.consumed_capacity'; +const TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS = + 'aws.dynamodb.item_collection_metrics'; +const TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = + 'aws.dynamodb.provisioned_read_capacity'; +const TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = + 'aws.dynamodb.provisioned_write_capacity'; +const TMP_AWS_DYNAMODB_CONSISTENT_READ = 'aws.dynamodb.consistent_read'; +const TMP_AWS_DYNAMODB_PROJECTION = 'aws.dynamodb.projection'; +const TMP_AWS_DYNAMODB_LIMIT = 'aws.dynamodb.limit'; +const TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET = 'aws.dynamodb.attributes_to_get'; +const TMP_AWS_DYNAMODB_INDEX_NAME = 'aws.dynamodb.index_name'; +const TMP_AWS_DYNAMODB_SELECT = 'aws.dynamodb.select'; +const TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = + 'aws.dynamodb.global_secondary_indexes'; +const TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = + 'aws.dynamodb.local_secondary_indexes'; +const TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE = + 'aws.dynamodb.exclusive_start_table'; +const TMP_AWS_DYNAMODB_TABLE_COUNT = 'aws.dynamodb.table_count'; +const TMP_AWS_DYNAMODB_SCAN_FORWARD = 'aws.dynamodb.scan_forward'; +const TMP_AWS_DYNAMODB_SEGMENT = 'aws.dynamodb.segment'; +const TMP_AWS_DYNAMODB_TOTAL_SEGMENTS = 'aws.dynamodb.total_segments'; +const TMP_AWS_DYNAMODB_COUNT = 'aws.dynamodb.count'; +const TMP_AWS_DYNAMODB_SCANNED_COUNT = 'aws.dynamodb.scanned_count'; +const TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = + 'aws.dynamodb.attribute_definitions'; +const TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = + 'aws.dynamodb.global_secondary_index_updates'; +const TMP_MESSAGING_SYSTEM = 'messaging.system'; +const TMP_MESSAGING_DESTINATION = 'messaging.destination'; +const TMP_MESSAGING_DESTINATION_KIND = 'messaging.destination_kind'; +const TMP_MESSAGING_TEMP_DESTINATION = 'messaging.temp_destination'; +const TMP_MESSAGING_PROTOCOL = 'messaging.protocol'; +const TMP_MESSAGING_PROTOCOL_VERSION = 'messaging.protocol_version'; +const TMP_MESSAGING_URL = 'messaging.url'; +const TMP_MESSAGING_MESSAGE_ID = 'messaging.message_id'; +const TMP_MESSAGING_CONVERSATION_ID = 'messaging.conversation_id'; +const TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES = + 'messaging.message_payload_size_bytes'; +const TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES = + 'messaging.message_payload_compressed_size_bytes'; +const TMP_MESSAGING_OPERATION = 'messaging.operation'; +const TMP_MESSAGING_CONSUMER_ID = 'messaging.consumer_id'; +const TMP_MESSAGING_RABBITMQ_ROUTING_KEY = 'messaging.rabbitmq.routing_key'; +const TMP_MESSAGING_KAFKA_MESSAGE_KEY = 'messaging.kafka.message_key'; +const TMP_MESSAGING_KAFKA_CONSUMER_GROUP = 'messaging.kafka.consumer_group'; +const TMP_MESSAGING_KAFKA_CLIENT_ID = 'messaging.kafka.client_id'; +const TMP_MESSAGING_KAFKA_PARTITION = 'messaging.kafka.partition'; +const TMP_MESSAGING_KAFKA_TOMBSTONE = 'messaging.kafka.tombstone'; +const TMP_RPC_SYSTEM = 'rpc.system'; +const TMP_RPC_SERVICE = 'rpc.service'; +const TMP_RPC_METHOD = 'rpc.method'; +const TMP_RPC_GRPC_STATUS_CODE = 'rpc.grpc.status_code'; +const TMP_RPC_JSONRPC_VERSION = 'rpc.jsonrpc.version'; +const TMP_RPC_JSONRPC_REQUEST_ID = 'rpc.jsonrpc.request_id'; +const TMP_RPC_JSONRPC_ERROR_CODE = 'rpc.jsonrpc.error_code'; +const TMP_RPC_JSONRPC_ERROR_MESSAGE = 'rpc.jsonrpc.error_message'; +const TMP_MESSAGE_TYPE = 'message.type'; +const TMP_MESSAGE_ID = 'message.id'; +const TMP_MESSAGE_COMPRESSED_SIZE = 'message.compressed_size'; +const TMP_MESSAGE_UNCOMPRESSED_SIZE = 'message.uncompressed_size'; + +/** + * The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). + * + * Note: This may be different from `faas.id` if an alias is involved. + */ +export const SEMATTRS_AWS_LAMBDA_INVOKED_ARN = TMP_AWS_LAMBDA_INVOKED_ARN; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const SEMATTRS_DB_SYSTEM = TMP_DB_SYSTEM; + +/** + * The connection string used to connect to the database. It is recommended to remove embedded credentials. + */ +export const SEMATTRS_DB_CONNECTION_STRING = TMP_DB_CONNECTION_STRING; + +/** + * Username for accessing the database. + */ +export const SEMATTRS_DB_USER = TMP_DB_USER; + +/** + * The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect. + */ +export const SEMATTRS_DB_JDBC_DRIVER_CLASSNAME = TMP_DB_JDBC_DRIVER_CLASSNAME; + +/** + * If no [tech-specific attribute](#call-level-attributes-for-specific-technologies) is defined, this attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails). + * + * Note: In some SQL databases, the database name to be used is called "schema name". + */ +export const SEMATTRS_DB_NAME = TMP_DB_NAME; + +/** + * The database statement being executed. + * + * Note: The value may be sanitized to exclude sensitive information. + */ +export const SEMATTRS_DB_STATEMENT = TMP_DB_STATEMENT; + +/** + * The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword. + * + * Note: When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted. + */ +export const SEMATTRS_DB_OPERATION = TMP_DB_OPERATION; + +/** + * The Microsoft SQL Server [instance name](https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. + * + * Note: If setting a `db.mssql.instance_name`, `net.peer.port` is no longer required (but still recommended if non-standard). + */ +export const SEMATTRS_DB_MSSQL_INSTANCE_NAME = TMP_DB_MSSQL_INSTANCE_NAME; + +/** + * The name of the keyspace being accessed. To be used instead of the generic `db.name` attribute. + */ +export const SEMATTRS_DB_CASSANDRA_KEYSPACE = TMP_DB_CASSANDRA_KEYSPACE; + +/** + * The fetch size used for paging, i.e. how many rows will be returned at once. + */ +export const SEMATTRS_DB_CASSANDRA_PAGE_SIZE = TMP_DB_CASSANDRA_PAGE_SIZE; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL = + TMP_DB_CASSANDRA_CONSISTENCY_LEVEL; + +/** + * The name of the primary table that the operation is acting upon, including the schema name (if applicable). + * + * Note: This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set. + */ +export const SEMATTRS_DB_CASSANDRA_TABLE = TMP_DB_CASSANDRA_TABLE; + +/** + * Whether or not the query is idempotent. + */ +export const SEMATTRS_DB_CASSANDRA_IDEMPOTENCE = TMP_DB_CASSANDRA_IDEMPOTENCE; + +/** + * The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. + */ +export const SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT = + TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT; + +/** + * The ID of the coordinating node for a query. + */ +export const SEMATTRS_DB_CASSANDRA_COORDINATOR_ID = + TMP_DB_CASSANDRA_COORDINATOR_ID; + +/** + * The data center of the coordinating node for a query. + */ +export const SEMATTRS_DB_CASSANDRA_COORDINATOR_DC = + TMP_DB_CASSANDRA_COORDINATOR_DC; + +/** + * The [HBase namespace](https://hbase.apache.org/book.html#_namespace) being accessed. To be used instead of the generic `db.name` attribute. + */ +export const SEMATTRS_DB_HBASE_NAMESPACE = TMP_DB_HBASE_NAMESPACE; + +/** + * The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. + */ +export const SEMATTRS_DB_REDIS_DATABASE_INDEX = TMP_DB_REDIS_DATABASE_INDEX; + +/** + * The collection being accessed within the database stated in `db.name`. + */ +export const SEMATTRS_DB_MONGODB_COLLECTION = TMP_DB_MONGODB_COLLECTION; + +/** + * The name of the primary table that the operation is acting upon, including the schema name (if applicable). + * + * Note: It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set. + */ +export const SEMATTRS_DB_SQL_TABLE = TMP_DB_SQL_TABLE; + +/** + * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. + */ +export const SEMATTRS_EXCEPTION_TYPE = TMP_EXCEPTION_TYPE; + +/** + * The exception message. + */ +export const SEMATTRS_EXCEPTION_MESSAGE = TMP_EXCEPTION_MESSAGE; + +/** + * A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. + */ +export const SEMATTRS_EXCEPTION_STACKTRACE = TMP_EXCEPTION_STACKTRACE; + +/** +* SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. +* +* Note: An exception is considered to have escaped (or left) the scope of a span, +if that span is ended while the exception is still logically "in flight". +This may be actually "in flight" in some languages (e.g. if the exception +is passed to a Context manager's `__exit__` method in Python) but will +usually be caught at the point of recording the exception in most languages. + +It is usually not possible to determine at the point where an exception is thrown +whether it will escape the scope of a span. +However, it is trivial to know that an exception +will escape, if one checks for an active exception just before ending the span, +as done in the [example above](#exception-end-example). + +It follows that an exception may still escape the scope of the span +even if the `exception.escaped` attribute was not set or set to false, +since the event might have been recorded at a time where it was not +clear whether the exception will escape. +*/ +export const SEMATTRS_EXCEPTION_ESCAPED = TMP_EXCEPTION_ESCAPED; + +/** + * Type of the trigger on which the function is executed. + */ +export const SEMATTRS_FAAS_TRIGGER = TMP_FAAS_TRIGGER; + +/** + * The execution ID of the current function execution. + */ +export const SEMATTRS_FAAS_EXECUTION = TMP_FAAS_EXECUTION; + +/** + * The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. + */ +export const SEMATTRS_FAAS_DOCUMENT_COLLECTION = TMP_FAAS_DOCUMENT_COLLECTION; + +/** + * Describes the type of the operation that was performed on the data. + */ +export const SEMATTRS_FAAS_DOCUMENT_OPERATION = TMP_FAAS_DOCUMENT_OPERATION; + +/** + * A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). + */ +export const SEMATTRS_FAAS_DOCUMENT_TIME = TMP_FAAS_DOCUMENT_TIME; + +/** + * The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. + */ +export const SEMATTRS_FAAS_DOCUMENT_NAME = TMP_FAAS_DOCUMENT_NAME; + +/** + * A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). + */ +export const SEMATTRS_FAAS_TIME = TMP_FAAS_TIME; + +/** + * A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). + */ +export const SEMATTRS_FAAS_CRON = TMP_FAAS_CRON; + +/** + * A boolean that is true if the serverless function is executed for the first time (aka cold-start). + */ +export const SEMATTRS_FAAS_COLDSTART = TMP_FAAS_COLDSTART; + +/** + * The name of the invoked function. + * + * Note: SHOULD be equal to the `faas.name` resource attribute of the invoked function. + */ +export const SEMATTRS_FAAS_INVOKED_NAME = TMP_FAAS_INVOKED_NAME; + +/** + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + */ +export const SEMATTRS_FAAS_INVOKED_PROVIDER = TMP_FAAS_INVOKED_PROVIDER; + +/** + * The cloud region of the invoked function. + * + * Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked function. + */ +export const SEMATTRS_FAAS_INVOKED_REGION = TMP_FAAS_INVOKED_REGION; + +/** + * Transport protocol used. See note below. + */ +export const SEMATTRS_NET_TRANSPORT = TMP_NET_TRANSPORT; + +/** + * Remote address of the peer (dotted decimal for IPv4 or [RFC5952](https://tools.ietf.org/html/rfc5952) for IPv6). + */ +export const SEMATTRS_NET_PEER_IP = TMP_NET_PEER_IP; + +/** + * Remote port number. + */ +export const SEMATTRS_NET_PEER_PORT = TMP_NET_PEER_PORT; + +/** + * Remote hostname or similar, see note below. + */ +export const SEMATTRS_NET_PEER_NAME = TMP_NET_PEER_NAME; + +/** + * Like `net.peer.ip` but for the host IP. Useful in case of a multi-IP host. + */ +export const SEMATTRS_NET_HOST_IP = TMP_NET_HOST_IP; + +/** + * Like `net.peer.port` but for the host port. + */ +export const SEMATTRS_NET_HOST_PORT = TMP_NET_HOST_PORT; + +/** + * Local hostname or similar, see note below. + */ +export const SEMATTRS_NET_HOST_NAME = TMP_NET_HOST_NAME; + +/** + * The internet connection type currently being used by the host. + */ +export const SEMATTRS_NET_HOST_CONNECTION_TYPE = TMP_NET_HOST_CONNECTION_TYPE; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const SEMATTRS_NET_HOST_CONNECTION_SUBTYPE = + TMP_NET_HOST_CONNECTION_SUBTYPE; + +/** + * The name of the mobile carrier. + */ +export const SEMATTRS_NET_HOST_CARRIER_NAME = TMP_NET_HOST_CARRIER_NAME; + +/** + * The mobile carrier country code. + */ +export const SEMATTRS_NET_HOST_CARRIER_MCC = TMP_NET_HOST_CARRIER_MCC; + +/** + * The mobile carrier network code. + */ +export const SEMATTRS_NET_HOST_CARRIER_MNC = TMP_NET_HOST_CARRIER_MNC; + +/** + * The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. + */ +export const SEMATTRS_NET_HOST_CARRIER_ICC = TMP_NET_HOST_CARRIER_ICC; + +/** + * The [`service.name`](../../resource/semantic_conventions/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. + */ +export const SEMATTRS_PEER_SERVICE = TMP_PEER_SERVICE; + +/** + * Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. + */ +export const SEMATTRS_ENDUSER_ID = TMP_ENDUSER_ID; + +/** + * Actual/assumed role the client is making the request under extracted from token or application security context. + */ +export const SEMATTRS_ENDUSER_ROLE = TMP_ENDUSER_ROLE; + +/** + * Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). + */ +export const SEMATTRS_ENDUSER_SCOPE = TMP_ENDUSER_SCOPE; + +/** + * Current "managed" thread ID (as opposed to OS thread ID). + */ +export const SEMATTRS_THREAD_ID = TMP_THREAD_ID; + +/** + * Current thread name. + */ +export const SEMATTRS_THREAD_NAME = TMP_THREAD_NAME; + +/** + * The method or function name, or equivalent (usually rightmost part of the code unit's name). + */ +export const SEMATTRS_CODE_FUNCTION = TMP_CODE_FUNCTION; + +/** + * The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. + */ +export const SEMATTRS_CODE_NAMESPACE = TMP_CODE_NAMESPACE; + +/** + * The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). + */ +export const SEMATTRS_CODE_FILEPATH = TMP_CODE_FILEPATH; + +/** + * The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. + */ +export const SEMATTRS_CODE_LINENO = TMP_CODE_LINENO; + +/** + * HTTP request method. + */ +export const SEMATTRS_HTTP_METHOD = TMP_HTTP_METHOD; + +/** + * Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless. + * + * Note: `http.url` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case the attribute's value should be `https://www.example.com/`. + */ +export const SEMATTRS_HTTP_URL = TMP_HTTP_URL; + +/** + * The full request target as passed in a HTTP request line or equivalent. + */ +export const SEMATTRS_HTTP_TARGET = TMP_HTTP_TARGET; + +/** + * The value of the [HTTP host header](https://tools.ietf.org/html/rfc7230#section-5.4). An empty Host header should also be reported, see note. + * + * Note: When the header is present but empty the attribute SHOULD be set to the empty string. Note that this is a valid situation that is expected in certain cases, according the aforementioned [section of RFC 7230](https://tools.ietf.org/html/rfc7230#section-5.4). When the header is not set the attribute MUST NOT be set. + */ +export const SEMATTRS_HTTP_HOST = TMP_HTTP_HOST; + +/** + * The URI scheme identifying the used protocol. + */ +export const SEMATTRS_HTTP_SCHEME = TMP_HTTP_SCHEME; + +/** + * [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). + */ +export const SEMATTRS_HTTP_STATUS_CODE = TMP_HTTP_STATUS_CODE; + +/** + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + */ +export const SEMATTRS_HTTP_FLAVOR = TMP_HTTP_FLAVOR; + +/** + * Value of the [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) header sent by the client. + */ +export const SEMATTRS_HTTP_USER_AGENT = TMP_HTTP_USER_AGENT; + +/** + * The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.2) header. For requests using transport encoding, this should be the compressed size. + */ +export const SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH = + TMP_HTTP_REQUEST_CONTENT_LENGTH; + +/** + * The size of the uncompressed request payload body after transport decoding. Not set if transport encoding not used. + */ +export const SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = + TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED; + +/** + * The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.2) header. For requests using transport encoding, this should be the compressed size. + */ +export const SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH = + TMP_HTTP_RESPONSE_CONTENT_LENGTH; + +/** + * The size of the uncompressed response payload body after transport decoding. Not set if transport encoding not used. + */ +export const SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = + TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED; + +/** + * The primary server name of the matched virtual host. This should be obtained via configuration. If no such configuration can be obtained, this attribute MUST NOT be set ( `net.host.name` should be used instead). + * + * Note: `http.url` is usually not readily available on the server side but would have to be assembled in a cumbersome and sometimes lossy process from other information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus preferred to supply the raw data that is available. + */ +export const SEMATTRS_HTTP_SERVER_NAME = TMP_HTTP_SERVER_NAME; + +/** + * The matched route (path template). + */ +export const SEMATTRS_HTTP_ROUTE = TMP_HTTP_ROUTE; + +/** +* The IP address of the original client behind all proxies, if known (e.g. from [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)). +* +* Note: This is not necessarily the same as `net.peer.ip`, which would +identify the network-level peer, which may be a proxy. + +This attribute should be set when a source of information different +from the one used for `net.peer.ip`, is available even if that other +source just confirms the same value as `net.peer.ip`. +Rationale: For `net.peer.ip`, one typically does not know if it +comes from a proxy, reverse proxy, or the actual client. Setting +`http.client_ip` when it's the same as `net.peer.ip` means that +one is at least somewhat confident that the address is not that of +the closest proxy. +*/ +export const SEMATTRS_HTTP_CLIENT_IP = TMP_HTTP_CLIENT_IP; + +/** + * The keys in the `RequestItems` object field. + */ +export const SEMATTRS_AWS_DYNAMODB_TABLE_NAMES = TMP_AWS_DYNAMODB_TABLE_NAMES; + +/** + * The JSON-serialized value of each item in the `ConsumedCapacity` response field. + */ +export const SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY = + TMP_AWS_DYNAMODB_CONSUMED_CAPACITY; + +/** + * The JSON-serialized value of the `ItemCollectionMetrics` response field. + */ +export const SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS = + TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS; + +/** + * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = + TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY; + +/** + * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = + TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY; + +/** + * The value of the `ConsistentRead` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ = + TMP_AWS_DYNAMODB_CONSISTENT_READ; + +/** + * The value of the `ProjectionExpression` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_PROJECTION = TMP_AWS_DYNAMODB_PROJECTION; + +/** + * The value of the `Limit` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_LIMIT = TMP_AWS_DYNAMODB_LIMIT; + +/** + * The value of the `AttributesToGet` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET = + TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET; + +/** + * The value of the `IndexName` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_INDEX_NAME = TMP_AWS_DYNAMODB_INDEX_NAME; + +/** + * The value of the `Select` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_SELECT = TMP_AWS_DYNAMODB_SELECT; + +/** + * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. + */ +export const SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = + TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES; + +/** + * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. + */ +export const SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = + TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES; + +/** + * The value of the `ExclusiveStartTableName` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE = + TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE; + +/** + * The the number of items in the `TableNames` response parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_TABLE_COUNT = TMP_AWS_DYNAMODB_TABLE_COUNT; + +/** + * The value of the `ScanIndexForward` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD = TMP_AWS_DYNAMODB_SCAN_FORWARD; + +/** + * The value of the `Segment` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_SEGMENT = TMP_AWS_DYNAMODB_SEGMENT; + +/** + * The value of the `TotalSegments` request parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS = + TMP_AWS_DYNAMODB_TOTAL_SEGMENTS; + +/** + * The value of the `Count` response parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_COUNT = TMP_AWS_DYNAMODB_COUNT; + +/** + * The value of the `ScannedCount` response parameter. + */ +export const SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT = + TMP_AWS_DYNAMODB_SCANNED_COUNT; + +/** + * The JSON-serialized value of each item in the `AttributeDefinitions` request field. + */ +export const SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = + TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS; + +/** + * The JSON-serialized value of each item in the the `GlobalSecondaryIndexUpdates` request field. + */ +export const SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = + TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES; + +/** + * A string identifying the messaging system. + */ +export const SEMATTRS_MESSAGING_SYSTEM = TMP_MESSAGING_SYSTEM; + +/** + * The message destination name. This might be equal to the span name but is required nevertheless. + */ +export const SEMATTRS_MESSAGING_DESTINATION = TMP_MESSAGING_DESTINATION; + +/** + * The kind of message destination. + */ +export const SEMATTRS_MESSAGING_DESTINATION_KIND = + TMP_MESSAGING_DESTINATION_KIND; + +/** + * A boolean that is true if the message destination is temporary. + */ +export const SEMATTRS_MESSAGING_TEMP_DESTINATION = + TMP_MESSAGING_TEMP_DESTINATION; + +/** + * The name of the transport protocol. + */ +export const SEMATTRS_MESSAGING_PROTOCOL = TMP_MESSAGING_PROTOCOL; + +/** + * The version of the transport protocol. + */ +export const SEMATTRS_MESSAGING_PROTOCOL_VERSION = + TMP_MESSAGING_PROTOCOL_VERSION; + +/** + * Connection string. + */ +export const SEMATTRS_MESSAGING_URL = TMP_MESSAGING_URL; + +/** + * A value used by the messaging system as an identifier for the message, represented as a string. + */ +export const SEMATTRS_MESSAGING_MESSAGE_ID = TMP_MESSAGING_MESSAGE_ID; + +/** + * The [conversation ID](#conversations) identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". + */ +export const SEMATTRS_MESSAGING_CONVERSATION_ID = TMP_MESSAGING_CONVERSATION_ID; + +/** + * The (uncompressed) size of the message payload in bytes. Also use this attribute if it is unknown whether the compressed or uncompressed payload size is reported. + */ +export const SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES = + TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES; + +/** + * The compressed size of the message payload in bytes. + */ +export const SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES = + TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES; + +/** + * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. + */ +export const SEMATTRS_MESSAGING_OPERATION = TMP_MESSAGING_OPERATION; + +/** + * The identifier for the consumer receiving a message. For Kafka, set it to `{messaging.kafka.consumer_group} - {messaging.kafka.client_id}`, if both are present, or only `messaging.kafka.consumer_group`. For brokers, such as RabbitMQ and Artemis, set it to the `client_id` of the client consuming the message. + */ +export const SEMATTRS_MESSAGING_CONSUMER_ID = TMP_MESSAGING_CONSUMER_ID; + +/** + * RabbitMQ message routing key. + */ +export const SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY = + TMP_MESSAGING_RABBITMQ_ROUTING_KEY; + +/** + * Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message_id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. + * + * Note: If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value. + */ +export const SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY = + TMP_MESSAGING_KAFKA_MESSAGE_KEY; + +/** + * Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. + */ +export const SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP = + TMP_MESSAGING_KAFKA_CONSUMER_GROUP; + +/** + * Client Id for the Consumer or Producer that is handling the message. + */ +export const SEMATTRS_MESSAGING_KAFKA_CLIENT_ID = TMP_MESSAGING_KAFKA_CLIENT_ID; + +/** + * Partition the message is sent to. + */ +export const SEMATTRS_MESSAGING_KAFKA_PARTITION = TMP_MESSAGING_KAFKA_PARTITION; + +/** + * A boolean that is true if the message is a tombstone. + */ +export const SEMATTRS_MESSAGING_KAFKA_TOMBSTONE = TMP_MESSAGING_KAFKA_TOMBSTONE; + +/** + * A string identifying the remoting system. + */ +export const SEMATTRS_RPC_SYSTEM = TMP_RPC_SYSTEM; + +/** + * The full (logical) name of the service being called, including its package name, if applicable. + * + * Note: This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). + */ +export const SEMATTRS_RPC_SERVICE = TMP_RPC_SERVICE; + +/** + * The name of the (logical) method being called, must be equal to the $method part in the span name. + * + * Note: This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). + */ +export const SEMATTRS_RPC_METHOD = TMP_RPC_METHOD; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const SEMATTRS_RPC_GRPC_STATUS_CODE = TMP_RPC_GRPC_STATUS_CODE; + +/** + * Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 does not specify this, the value can be omitted. + */ +export const SEMATTRS_RPC_JSONRPC_VERSION = TMP_RPC_JSONRPC_VERSION; + +/** + * `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. + */ +export const SEMATTRS_RPC_JSONRPC_REQUEST_ID = TMP_RPC_JSONRPC_REQUEST_ID; + +/** + * `error.code` property of response if it is an error response. + */ +export const SEMATTRS_RPC_JSONRPC_ERROR_CODE = TMP_RPC_JSONRPC_ERROR_CODE; + +/** + * `error.message` property of response if it is an error response. + */ +export const SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE = TMP_RPC_JSONRPC_ERROR_MESSAGE; + +/** + * Whether this is a received or sent message. + */ +export const SEMATTRS_MESSAGE_TYPE = TMP_MESSAGE_TYPE; + +/** + * MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. + * + * Note: This way we guarantee that the values will be consistent between different implementations. + */ +export const SEMATTRS_MESSAGE_ID = TMP_MESSAGE_ID; + +/** + * Compressed size of the message in bytes. + */ +export const SEMATTRS_MESSAGE_COMPRESSED_SIZE = TMP_MESSAGE_COMPRESSED_SIZE; + +/** + * Uncompressed size of the message in bytes. + */ +export const SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE = TMP_MESSAGE_UNCOMPRESSED_SIZE; + +/** + * Definition of available values for SemanticAttributes + * This type is used for backward compatibility, you should use the individual exported + * constants SemanticAttributes_XXXXX rather than the exported constant map. As any single reference + * to a constant map value will result in all strings being included into your bundle. + * @deprecated Use the SEMATTRS_XXXXX constants rather than the SemanticAttributes.XXXXX for bundle minification. + */ +export type SemanticAttributes = { /** * The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). * * Note: This may be different from `faas.id` if an alias is involved. */ - AWS_LAMBDA_INVOKED_ARN: 'aws.lambda.invoked_arn', + AWS_LAMBDA_INVOKED_ARN: 'aws.lambda.invoked_arn'; /** * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. */ - DB_SYSTEM: 'db.system', + DB_SYSTEM: 'db.system'; /** * The connection string used to connect to the database. It is recommended to remove embedded credentials. */ - DB_CONNECTION_STRING: 'db.connection_string', + DB_CONNECTION_STRING: 'db.connection_string'; /** * Username for accessing the database. */ - DB_USER: 'db.user', + DB_USER: 'db.user'; /** * The fully-qualified class name of the [Java Database Connectivity (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver used to connect. */ - DB_JDBC_DRIVER_CLASSNAME: 'db.jdbc.driver_classname', + DB_JDBC_DRIVER_CLASSNAME: 'db.jdbc.driver_classname'; /** * If no [tech-specific attribute](#call-level-attributes-for-specific-technologies) is defined, this attribute is used to report the name of the database being accessed. For commands that switch the database, this should be set to the target database (even if the command fails). * * Note: In some SQL databases, the database name to be used is called "schema name". */ - DB_NAME: 'db.name', + DB_NAME: 'db.name'; /** * The database statement being executed. * * Note: The value may be sanitized to exclude sensitive information. */ - DB_STATEMENT: 'db.statement', + DB_STATEMENT: 'db.statement'; /** * The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations) such as `findAndModify`, or the SQL keyword. * * Note: When setting this to an SQL keyword, it is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if the operation name is provided by the library being instrumented. If the SQL statement has an ambiguous operation, or performs more than one operation, this value may be omitted. */ - DB_OPERATION: 'db.operation', + DB_OPERATION: 'db.operation'; /** * The Microsoft SQL Server [instance name](https://docs.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. * * Note: If setting a `db.mssql.instance_name`, `net.peer.port` is no longer required (but still recommended if non-standard). */ - DB_MSSQL_INSTANCE_NAME: 'db.mssql.instance_name', + DB_MSSQL_INSTANCE_NAME: 'db.mssql.instance_name'; /** * The name of the keyspace being accessed. To be used instead of the generic `db.name` attribute. */ - DB_CASSANDRA_KEYSPACE: 'db.cassandra.keyspace', + DB_CASSANDRA_KEYSPACE: 'db.cassandra.keyspace'; /** * The fetch size used for paging, i.e. how many rows will be returned at once. */ - DB_CASSANDRA_PAGE_SIZE: 'db.cassandra.page_size', + DB_CASSANDRA_PAGE_SIZE: 'db.cassandra.page_size'; /** * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). */ - DB_CASSANDRA_CONSISTENCY_LEVEL: 'db.cassandra.consistency_level', + DB_CASSANDRA_CONSISTENCY_LEVEL: 'db.cassandra.consistency_level'; /** * The name of the primary table that the operation is acting upon, including the schema name (if applicable). * * Note: This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set. */ - DB_CASSANDRA_TABLE: 'db.cassandra.table', + DB_CASSANDRA_TABLE: 'db.cassandra.table'; /** * Whether or not the query is idempotent. */ - DB_CASSANDRA_IDEMPOTENCE: 'db.cassandra.idempotence', + DB_CASSANDRA_IDEMPOTENCE: 'db.cassandra.idempotence'; /** * The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. */ - DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT: - 'db.cassandra.speculative_execution_count', + DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT: 'db.cassandra.speculative_execution_count'; /** * The ID of the coordinating node for a query. */ - DB_CASSANDRA_COORDINATOR_ID: 'db.cassandra.coordinator.id', + DB_CASSANDRA_COORDINATOR_ID: 'db.cassandra.coordinator.id'; /** * The data center of the coordinating node for a query. */ - DB_CASSANDRA_COORDINATOR_DC: 'db.cassandra.coordinator.dc', + DB_CASSANDRA_COORDINATOR_DC: 'db.cassandra.coordinator.dc'; /** * The [HBase namespace](https://hbase.apache.org/book.html#_namespace) being accessed. To be used instead of the generic `db.name` attribute. */ - DB_HBASE_NAMESPACE: 'db.hbase.namespace', + DB_HBASE_NAMESPACE: 'db.hbase.namespace'; /** * The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. */ - DB_REDIS_DATABASE_INDEX: 'db.redis.database_index', + DB_REDIS_DATABASE_INDEX: 'db.redis.database_index'; /** * The collection being accessed within the database stated in `db.name`. */ - DB_MONGODB_COLLECTION: 'db.mongodb.collection', + DB_MONGODB_COLLECTION: 'db.mongodb.collection'; /** * The name of the primary table that the operation is acting upon, including the schema name (if applicable). * * Note: It is not recommended to attempt any client-side parsing of `db.statement` just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set. */ - DB_SQL_TABLE: 'db.sql.table', + DB_SQL_TABLE: 'db.sql.table'; /** * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. */ - EXCEPTION_TYPE: 'exception.type', + EXCEPTION_TYPE: 'exception.type'; /** * The exception message. */ - EXCEPTION_MESSAGE: 'exception.message', + EXCEPTION_MESSAGE: 'exception.message'; /** * A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. */ - EXCEPTION_STACKTRACE: 'exception.stacktrace', + EXCEPTION_STACKTRACE: 'exception.stacktrace'; /** * SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span. @@ -171,268 +1065,266 @@ even if the `exception.escaped` attribute was not set or set to false, since the event might have been recorded at a time where it was not clear whether the exception will escape. */ - EXCEPTION_ESCAPED: 'exception.escaped', + EXCEPTION_ESCAPED: 'exception.escaped'; /** * Type of the trigger on which the function is executed. */ - FAAS_TRIGGER: 'faas.trigger', + FAAS_TRIGGER: 'faas.trigger'; /** * The execution ID of the current function execution. */ - FAAS_EXECUTION: 'faas.execution', + FAAS_EXECUTION: 'faas.execution'; /** * The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. */ - FAAS_DOCUMENT_COLLECTION: 'faas.document.collection', + FAAS_DOCUMENT_COLLECTION: 'faas.document.collection'; /** * Describes the type of the operation that was performed on the data. */ - FAAS_DOCUMENT_OPERATION: 'faas.document.operation', + FAAS_DOCUMENT_OPERATION: 'faas.document.operation'; /** * A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). */ - FAAS_DOCUMENT_TIME: 'faas.document.time', + FAAS_DOCUMENT_TIME: 'faas.document.time'; /** * The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. */ - FAAS_DOCUMENT_NAME: 'faas.document.name', + FAAS_DOCUMENT_NAME: 'faas.document.name'; /** * A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). */ - FAAS_TIME: 'faas.time', + FAAS_TIME: 'faas.time'; /** * A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). */ - FAAS_CRON: 'faas.cron', + FAAS_CRON: 'faas.cron'; /** * A boolean that is true if the serverless function is executed for the first time (aka cold-start). */ - FAAS_COLDSTART: 'faas.coldstart', + FAAS_COLDSTART: 'faas.coldstart'; /** * The name of the invoked function. * * Note: SHOULD be equal to the `faas.name` resource attribute of the invoked function. */ - FAAS_INVOKED_NAME: 'faas.invoked_name', + FAAS_INVOKED_NAME: 'faas.invoked_name'; /** * The cloud provider of the invoked function. * * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. */ - FAAS_INVOKED_PROVIDER: 'faas.invoked_provider', + FAAS_INVOKED_PROVIDER: 'faas.invoked_provider'; /** * The cloud region of the invoked function. * * Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked function. */ - FAAS_INVOKED_REGION: 'faas.invoked_region', + FAAS_INVOKED_REGION: 'faas.invoked_region'; /** * Transport protocol used. See note below. */ - NET_TRANSPORT: 'net.transport', + NET_TRANSPORT: 'net.transport'; /** * Remote address of the peer (dotted decimal for IPv4 or [RFC5952](https://tools.ietf.org/html/rfc5952) for IPv6). */ - NET_PEER_IP: 'net.peer.ip', + NET_PEER_IP: 'net.peer.ip'; /** * Remote port number. */ - NET_PEER_PORT: 'net.peer.port', + NET_PEER_PORT: 'net.peer.port'; /** * Remote hostname or similar, see note below. */ - NET_PEER_NAME: 'net.peer.name', + NET_PEER_NAME: 'net.peer.name'; /** * Like `net.peer.ip` but for the host IP. Useful in case of a multi-IP host. */ - NET_HOST_IP: 'net.host.ip', + NET_HOST_IP: 'net.host.ip'; /** * Like `net.peer.port` but for the host port. */ - NET_HOST_PORT: 'net.host.port', + NET_HOST_PORT: 'net.host.port'; /** * Local hostname or similar, see note below. */ - NET_HOST_NAME: 'net.host.name', + NET_HOST_NAME: 'net.host.name'; /** * The internet connection type currently being used by the host. */ - NET_HOST_CONNECTION_TYPE: 'net.host.connection.type', + NET_HOST_CONNECTION_TYPE: 'net.host.connection.type'; /** * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. */ - NET_HOST_CONNECTION_SUBTYPE: 'net.host.connection.subtype', + NET_HOST_CONNECTION_SUBTYPE: 'net.host.connection.subtype'; /** * The name of the mobile carrier. */ - NET_HOST_CARRIER_NAME: 'net.host.carrier.name', + NET_HOST_CARRIER_NAME: 'net.host.carrier.name'; /** * The mobile carrier country code. */ - NET_HOST_CARRIER_MCC: 'net.host.carrier.mcc', + NET_HOST_CARRIER_MCC: 'net.host.carrier.mcc'; /** * The mobile carrier network code. */ - NET_HOST_CARRIER_MNC: 'net.host.carrier.mnc', + NET_HOST_CARRIER_MNC: 'net.host.carrier.mnc'; /** * The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network. */ - NET_HOST_CARRIER_ICC: 'net.host.carrier.icc', + NET_HOST_CARRIER_ICC: 'net.host.carrier.icc'; /** * The [`service.name`](../../resource/semantic_conventions/README.md#service) of the remote service. SHOULD be equal to the actual `service.name` resource attribute of the remote service if any. */ - PEER_SERVICE: 'peer.service', + PEER_SERVICE: 'peer.service'; /** * Username or client_id extracted from the access token or [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the inbound request from outside the system. */ - ENDUSER_ID: 'enduser.id', + ENDUSER_ID: 'enduser.id'; /** * Actual/assumed role the client is making the request under extracted from token or application security context. */ - ENDUSER_ROLE: 'enduser.role', + ENDUSER_ROLE: 'enduser.role'; /** * Scopes or granted authorities the client currently possesses extracted from token or application security context. The value would come from the scope associated with an [OAuth 2.0 Access Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value in a [SAML 2.0 Assertion](http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html). */ - ENDUSER_SCOPE: 'enduser.scope', + ENDUSER_SCOPE: 'enduser.scope'; /** * Current "managed" thread ID (as opposed to OS thread ID). */ - THREAD_ID: 'thread.id', + THREAD_ID: 'thread.id'; /** * Current thread name. */ - THREAD_NAME: 'thread.name', + THREAD_NAME: 'thread.name'; /** * The method or function name, or equivalent (usually rightmost part of the code unit's name). */ - CODE_FUNCTION: 'code.function', + CODE_FUNCTION: 'code.function'; /** * The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. */ - CODE_NAMESPACE: 'code.namespace', + CODE_NAMESPACE: 'code.namespace'; /** * The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). */ - CODE_FILEPATH: 'code.filepath', + CODE_FILEPATH: 'code.filepath'; /** * The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. */ - CODE_LINENO: 'code.lineno', + CODE_LINENO: 'code.lineno'; /** * HTTP request method. */ - HTTP_METHOD: 'http.method', + HTTP_METHOD: 'http.method'; /** * Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless. * * Note: `http.url` MUST NOT contain credentials passed via URL in form of `https://username:password@www.example.com/`. In such case the attribute's value should be `https://www.example.com/`. */ - HTTP_URL: 'http.url', + HTTP_URL: 'http.url'; /** * The full request target as passed in a HTTP request line or equivalent. */ - HTTP_TARGET: 'http.target', + HTTP_TARGET: 'http.target'; /** * The value of the [HTTP host header](https://tools.ietf.org/html/rfc7230#section-5.4). An empty Host header should also be reported, see note. * * Note: When the header is present but empty the attribute SHOULD be set to the empty string. Note that this is a valid situation that is expected in certain cases, according the aforementioned [section of RFC 7230](https://tools.ietf.org/html/rfc7230#section-5.4). When the header is not set the attribute MUST NOT be set. */ - HTTP_HOST: 'http.host', + HTTP_HOST: 'http.host'; /** * The URI scheme identifying the used protocol. */ - HTTP_SCHEME: 'http.scheme', + HTTP_SCHEME: 'http.scheme'; /** * [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). */ - HTTP_STATUS_CODE: 'http.status_code', + HTTP_STATUS_CODE: 'http.status_code'; /** * Kind of HTTP protocol used. * * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. */ - HTTP_FLAVOR: 'http.flavor', + HTTP_FLAVOR: 'http.flavor'; /** * Value of the [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) header sent by the client. */ - HTTP_USER_AGENT: 'http.user_agent', + HTTP_USER_AGENT: 'http.user_agent'; /** * The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.2) header. For requests using transport encoding, this should be the compressed size. */ - HTTP_REQUEST_CONTENT_LENGTH: 'http.request_content_length', + HTTP_REQUEST_CONTENT_LENGTH: 'http.request_content_length'; /** * The size of the uncompressed request payload body after transport decoding. Not set if transport encoding not used. */ - HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED: - 'http.request_content_length_uncompressed', + HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED: 'http.request_content_length_uncompressed'; /** * The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.2) header. For requests using transport encoding, this should be the compressed size. */ - HTTP_RESPONSE_CONTENT_LENGTH: 'http.response_content_length', + HTTP_RESPONSE_CONTENT_LENGTH: 'http.response_content_length'; /** * The size of the uncompressed response payload body after transport decoding. Not set if transport encoding not used. */ - HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED: - 'http.response_content_length_uncompressed', + HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED: 'http.response_content_length_uncompressed'; /** * The primary server name of the matched virtual host. This should be obtained via configuration. If no such configuration can be obtained, this attribute MUST NOT be set ( `net.host.name` should be used instead). * * Note: `http.url` is usually not readily available on the server side but would have to be assembled in a cumbersome and sometimes lossy process from other information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus preferred to supply the raw data that is available. */ - HTTP_SERVER_NAME: 'http.server_name', + HTTP_SERVER_NAME: 'http.server_name'; /** * The matched route (path template). */ - HTTP_ROUTE: 'http.route', + HTTP_ROUTE: 'http.route'; /** * The IP address of the original client behind all proxies, if known (e.g. from [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)). @@ -449,610 +1341,2135 @@ comes from a proxy, reverse proxy, or the actual client. Setting one is at least somewhat confident that the address is not that of the closest proxy. */ - HTTP_CLIENT_IP: 'http.client_ip', + HTTP_CLIENT_IP: 'http.client_ip'; /** * The keys in the `RequestItems` object field. */ - AWS_DYNAMODB_TABLE_NAMES: 'aws.dynamodb.table_names', + AWS_DYNAMODB_TABLE_NAMES: 'aws.dynamodb.table_names'; /** * The JSON-serialized value of each item in the `ConsumedCapacity` response field. */ - AWS_DYNAMODB_CONSUMED_CAPACITY: 'aws.dynamodb.consumed_capacity', + AWS_DYNAMODB_CONSUMED_CAPACITY: 'aws.dynamodb.consumed_capacity'; /** * The JSON-serialized value of the `ItemCollectionMetrics` response field. */ - AWS_DYNAMODB_ITEM_COLLECTION_METRICS: 'aws.dynamodb.item_collection_metrics', + AWS_DYNAMODB_ITEM_COLLECTION_METRICS: 'aws.dynamodb.item_collection_metrics'; /** * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. */ - AWS_DYNAMODB_PROVISIONED_READ_CAPACITY: - 'aws.dynamodb.provisioned_read_capacity', + AWS_DYNAMODB_PROVISIONED_READ_CAPACITY: 'aws.dynamodb.provisioned_read_capacity'; /** * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. */ - AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY: - 'aws.dynamodb.provisioned_write_capacity', + AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY: 'aws.dynamodb.provisioned_write_capacity'; /** * The value of the `ConsistentRead` request parameter. */ - AWS_DYNAMODB_CONSISTENT_READ: 'aws.dynamodb.consistent_read', + AWS_DYNAMODB_CONSISTENT_READ: 'aws.dynamodb.consistent_read'; /** * The value of the `ProjectionExpression` request parameter. */ - AWS_DYNAMODB_PROJECTION: 'aws.dynamodb.projection', + AWS_DYNAMODB_PROJECTION: 'aws.dynamodb.projection'; /** * The value of the `Limit` request parameter. */ - AWS_DYNAMODB_LIMIT: 'aws.dynamodb.limit', + AWS_DYNAMODB_LIMIT: 'aws.dynamodb.limit'; /** * The value of the `AttributesToGet` request parameter. */ - AWS_DYNAMODB_ATTRIBUTES_TO_GET: 'aws.dynamodb.attributes_to_get', + AWS_DYNAMODB_ATTRIBUTES_TO_GET: 'aws.dynamodb.attributes_to_get'; /** * The value of the `IndexName` request parameter. */ - AWS_DYNAMODB_INDEX_NAME: 'aws.dynamodb.index_name', + AWS_DYNAMODB_INDEX_NAME: 'aws.dynamodb.index_name'; /** * The value of the `Select` request parameter. */ - AWS_DYNAMODB_SELECT: 'aws.dynamodb.select', + AWS_DYNAMODB_SELECT: 'aws.dynamodb.select'; /** * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. */ - AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES: - 'aws.dynamodb.global_secondary_indexes', + AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES: 'aws.dynamodb.global_secondary_indexes'; /** * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. */ - AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES: 'aws.dynamodb.local_secondary_indexes', + AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES: 'aws.dynamodb.local_secondary_indexes'; /** * The value of the `ExclusiveStartTableName` request parameter. */ - AWS_DYNAMODB_EXCLUSIVE_START_TABLE: 'aws.dynamodb.exclusive_start_table', + AWS_DYNAMODB_EXCLUSIVE_START_TABLE: 'aws.dynamodb.exclusive_start_table'; /** * The the number of items in the `TableNames` response parameter. */ - AWS_DYNAMODB_TABLE_COUNT: 'aws.dynamodb.table_count', + AWS_DYNAMODB_TABLE_COUNT: 'aws.dynamodb.table_count'; /** * The value of the `ScanIndexForward` request parameter. */ - AWS_DYNAMODB_SCAN_FORWARD: 'aws.dynamodb.scan_forward', + AWS_DYNAMODB_SCAN_FORWARD: 'aws.dynamodb.scan_forward'; /** * The value of the `Segment` request parameter. */ - AWS_DYNAMODB_SEGMENT: 'aws.dynamodb.segment', + AWS_DYNAMODB_SEGMENT: 'aws.dynamodb.segment'; /** * The value of the `TotalSegments` request parameter. */ - AWS_DYNAMODB_TOTAL_SEGMENTS: 'aws.dynamodb.total_segments', + AWS_DYNAMODB_TOTAL_SEGMENTS: 'aws.dynamodb.total_segments'; /** * The value of the `Count` response parameter. */ - AWS_DYNAMODB_COUNT: 'aws.dynamodb.count', + AWS_DYNAMODB_COUNT: 'aws.dynamodb.count'; /** * The value of the `ScannedCount` response parameter. */ - AWS_DYNAMODB_SCANNED_COUNT: 'aws.dynamodb.scanned_count', + AWS_DYNAMODB_SCANNED_COUNT: 'aws.dynamodb.scanned_count'; /** * The JSON-serialized value of each item in the `AttributeDefinitions` request field. */ - AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: 'aws.dynamodb.attribute_definitions', + AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: 'aws.dynamodb.attribute_definitions'; /** * The JSON-serialized value of each item in the the `GlobalSecondaryIndexUpdates` request field. */ - AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES: - 'aws.dynamodb.global_secondary_index_updates', + AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES: 'aws.dynamodb.global_secondary_index_updates'; /** * A string identifying the messaging system. */ - MESSAGING_SYSTEM: 'messaging.system', + MESSAGING_SYSTEM: 'messaging.system'; /** * The message destination name. This might be equal to the span name but is required nevertheless. */ - MESSAGING_DESTINATION: 'messaging.destination', + MESSAGING_DESTINATION: 'messaging.destination'; /** * The kind of message destination. */ - MESSAGING_DESTINATION_KIND: 'messaging.destination_kind', + MESSAGING_DESTINATION_KIND: 'messaging.destination_kind'; /** * A boolean that is true if the message destination is temporary. */ - MESSAGING_TEMP_DESTINATION: 'messaging.temp_destination', + MESSAGING_TEMP_DESTINATION: 'messaging.temp_destination'; /** * The name of the transport protocol. */ - MESSAGING_PROTOCOL: 'messaging.protocol', + MESSAGING_PROTOCOL: 'messaging.protocol'; /** * The version of the transport protocol. */ - MESSAGING_PROTOCOL_VERSION: 'messaging.protocol_version', + MESSAGING_PROTOCOL_VERSION: 'messaging.protocol_version'; /** * Connection string. */ - MESSAGING_URL: 'messaging.url', + MESSAGING_URL: 'messaging.url'; /** * A value used by the messaging system as an identifier for the message, represented as a string. */ - MESSAGING_MESSAGE_ID: 'messaging.message_id', + MESSAGING_MESSAGE_ID: 'messaging.message_id'; /** * The [conversation ID](#conversations) identifying the conversation to which the message belongs, represented as a string. Sometimes called "Correlation ID". */ - MESSAGING_CONVERSATION_ID: 'messaging.conversation_id', + MESSAGING_CONVERSATION_ID: 'messaging.conversation_id'; /** * The (uncompressed) size of the message payload in bytes. Also use this attribute if it is unknown whether the compressed or uncompressed payload size is reported. */ - MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES: 'messaging.message_payload_size_bytes', + MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES: 'messaging.message_payload_size_bytes'; /** * The compressed size of the message payload in bytes. */ - MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES: - 'messaging.message_payload_compressed_size_bytes', + MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES: 'messaging.message_payload_compressed_size_bytes'; /** * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. */ - MESSAGING_OPERATION: 'messaging.operation', + MESSAGING_OPERATION: 'messaging.operation'; /** * The identifier for the consumer receiving a message. For Kafka, set it to `{messaging.kafka.consumer_group} - {messaging.kafka.client_id}`, if both are present, or only `messaging.kafka.consumer_group`. For brokers, such as RabbitMQ and Artemis, set it to the `client_id` of the client consuming the message. */ - MESSAGING_CONSUMER_ID: 'messaging.consumer_id', + MESSAGING_CONSUMER_ID: 'messaging.consumer_id'; /** * RabbitMQ message routing key. */ - MESSAGING_RABBITMQ_ROUTING_KEY: 'messaging.rabbitmq.routing_key', + MESSAGING_RABBITMQ_ROUTING_KEY: 'messaging.rabbitmq.routing_key'; /** * Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from `messaging.message_id` in that they're not unique. If the key is `null`, the attribute MUST NOT be set. * * Note: If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value. */ - MESSAGING_KAFKA_MESSAGE_KEY: 'messaging.kafka.message_key', + MESSAGING_KAFKA_MESSAGE_KEY: 'messaging.kafka.message_key'; /** * Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. */ - MESSAGING_KAFKA_CONSUMER_GROUP: 'messaging.kafka.consumer_group', + MESSAGING_KAFKA_CONSUMER_GROUP: 'messaging.kafka.consumer_group'; /** * Client Id for the Consumer or Producer that is handling the message. */ - MESSAGING_KAFKA_CLIENT_ID: 'messaging.kafka.client_id', + MESSAGING_KAFKA_CLIENT_ID: 'messaging.kafka.client_id'; /** * Partition the message is sent to. */ - MESSAGING_KAFKA_PARTITION: 'messaging.kafka.partition', + MESSAGING_KAFKA_PARTITION: 'messaging.kafka.partition'; /** * A boolean that is true if the message is a tombstone. */ - MESSAGING_KAFKA_TOMBSTONE: 'messaging.kafka.tombstone', + MESSAGING_KAFKA_TOMBSTONE: 'messaging.kafka.tombstone'; /** * A string identifying the remoting system. */ - RPC_SYSTEM: 'rpc.system', + RPC_SYSTEM: 'rpc.system'; /** * The full (logical) name of the service being called, including its package name, if applicable. * * Note: This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). */ - RPC_SERVICE: 'rpc.service', + RPC_SERVICE: 'rpc.service'; /** * The name of the (logical) method being called, must be equal to the $method part in the span name. * * Note: This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). */ - RPC_METHOD: 'rpc.method', + RPC_METHOD: 'rpc.method'; /** * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. */ - RPC_GRPC_STATUS_CODE: 'rpc.grpc.status_code', + RPC_GRPC_STATUS_CODE: 'rpc.grpc.status_code'; /** * Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 does not specify this, the value can be omitted. */ - RPC_JSONRPC_VERSION: 'rpc.jsonrpc.version', + RPC_JSONRPC_VERSION: 'rpc.jsonrpc.version'; /** * `id` property of request or response. Since protocol allows id to be int, string, `null` or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of `null` value. Omit entirely if this is a notification. */ - RPC_JSONRPC_REQUEST_ID: 'rpc.jsonrpc.request_id', + RPC_JSONRPC_REQUEST_ID: 'rpc.jsonrpc.request_id'; /** * `error.code` property of response if it is an error response. */ - RPC_JSONRPC_ERROR_CODE: 'rpc.jsonrpc.error_code', + RPC_JSONRPC_ERROR_CODE: 'rpc.jsonrpc.error_code'; /** * `error.message` property of response if it is an error response. */ - RPC_JSONRPC_ERROR_MESSAGE: 'rpc.jsonrpc.error_message', + RPC_JSONRPC_ERROR_MESSAGE: 'rpc.jsonrpc.error_message'; /** * Whether this is a received or sent message. */ - MESSAGE_TYPE: 'message.type', + MESSAGE_TYPE: 'message.type'; /** * MUST be calculated as two different counters starting from `1` one for sent messages and one for received message. * * Note: This way we guarantee that the values will be consistent between different implementations. */ - MESSAGE_ID: 'message.id', + MESSAGE_ID: 'message.id'; /** * Compressed size of the message in bytes. */ - MESSAGE_COMPRESSED_SIZE: 'message.compressed_size', + MESSAGE_COMPRESSED_SIZE: 'message.compressed_size'; /** * Uncompressed size of the message in bytes. */ - MESSAGE_UNCOMPRESSED_SIZE: 'message.uncompressed_size', + MESSAGE_UNCOMPRESSED_SIZE: 'message.uncompressed_size'; }; -export const DbSystemValues = { +/** + * Create exported Value Map for SemanticAttributes values + * @deprecated Use the SEMATTRS_XXXXX constants rather than the SemanticAttributes.XXXXX for bundle minification + */ +export const SemanticAttributes: SemanticAttributes = + /*#__PURE__*/ createConstMap([ + TMP_AWS_LAMBDA_INVOKED_ARN, + TMP_DB_SYSTEM, + TMP_DB_CONNECTION_STRING, + TMP_DB_USER, + TMP_DB_JDBC_DRIVER_CLASSNAME, + TMP_DB_NAME, + TMP_DB_STATEMENT, + TMP_DB_OPERATION, + TMP_DB_MSSQL_INSTANCE_NAME, + TMP_DB_CASSANDRA_KEYSPACE, + TMP_DB_CASSANDRA_PAGE_SIZE, + TMP_DB_CASSANDRA_CONSISTENCY_LEVEL, + TMP_DB_CASSANDRA_TABLE, + TMP_DB_CASSANDRA_IDEMPOTENCE, + TMP_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT, + TMP_DB_CASSANDRA_COORDINATOR_ID, + TMP_DB_CASSANDRA_COORDINATOR_DC, + TMP_DB_HBASE_NAMESPACE, + TMP_DB_REDIS_DATABASE_INDEX, + TMP_DB_MONGODB_COLLECTION, + TMP_DB_SQL_TABLE, + TMP_EXCEPTION_TYPE, + TMP_EXCEPTION_MESSAGE, + TMP_EXCEPTION_STACKTRACE, + TMP_EXCEPTION_ESCAPED, + TMP_FAAS_TRIGGER, + TMP_FAAS_EXECUTION, + TMP_FAAS_DOCUMENT_COLLECTION, + TMP_FAAS_DOCUMENT_OPERATION, + TMP_FAAS_DOCUMENT_TIME, + TMP_FAAS_DOCUMENT_NAME, + TMP_FAAS_TIME, + TMP_FAAS_CRON, + TMP_FAAS_COLDSTART, + TMP_FAAS_INVOKED_NAME, + TMP_FAAS_INVOKED_PROVIDER, + TMP_FAAS_INVOKED_REGION, + TMP_NET_TRANSPORT, + TMP_NET_PEER_IP, + TMP_NET_PEER_PORT, + TMP_NET_PEER_NAME, + TMP_NET_HOST_IP, + TMP_NET_HOST_PORT, + TMP_NET_HOST_NAME, + TMP_NET_HOST_CONNECTION_TYPE, + TMP_NET_HOST_CONNECTION_SUBTYPE, + TMP_NET_HOST_CARRIER_NAME, + TMP_NET_HOST_CARRIER_MCC, + TMP_NET_HOST_CARRIER_MNC, + TMP_NET_HOST_CARRIER_ICC, + TMP_PEER_SERVICE, + TMP_ENDUSER_ID, + TMP_ENDUSER_ROLE, + TMP_ENDUSER_SCOPE, + TMP_THREAD_ID, + TMP_THREAD_NAME, + TMP_CODE_FUNCTION, + TMP_CODE_NAMESPACE, + TMP_CODE_FILEPATH, + TMP_CODE_LINENO, + TMP_HTTP_METHOD, + TMP_HTTP_URL, + TMP_HTTP_TARGET, + TMP_HTTP_HOST, + TMP_HTTP_SCHEME, + TMP_HTTP_STATUS_CODE, + TMP_HTTP_FLAVOR, + TMP_HTTP_USER_AGENT, + TMP_HTTP_REQUEST_CONTENT_LENGTH, + TMP_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED, + TMP_HTTP_RESPONSE_CONTENT_LENGTH, + TMP_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED, + TMP_HTTP_SERVER_NAME, + TMP_HTTP_ROUTE, + TMP_HTTP_CLIENT_IP, + TMP_AWS_DYNAMODB_TABLE_NAMES, + TMP_AWS_DYNAMODB_CONSUMED_CAPACITY, + TMP_AWS_DYNAMODB_ITEM_COLLECTION_METRICS, + TMP_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY, + TMP_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY, + TMP_AWS_DYNAMODB_CONSISTENT_READ, + TMP_AWS_DYNAMODB_PROJECTION, + TMP_AWS_DYNAMODB_LIMIT, + TMP_AWS_DYNAMODB_ATTRIBUTES_TO_GET, + TMP_AWS_DYNAMODB_INDEX_NAME, + TMP_AWS_DYNAMODB_SELECT, + TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES, + TMP_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES, + TMP_AWS_DYNAMODB_EXCLUSIVE_START_TABLE, + TMP_AWS_DYNAMODB_TABLE_COUNT, + TMP_AWS_DYNAMODB_SCAN_FORWARD, + TMP_AWS_DYNAMODB_SEGMENT, + TMP_AWS_DYNAMODB_TOTAL_SEGMENTS, + TMP_AWS_DYNAMODB_COUNT, + TMP_AWS_DYNAMODB_SCANNED_COUNT, + TMP_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS, + TMP_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES, + TMP_MESSAGING_SYSTEM, + TMP_MESSAGING_DESTINATION, + TMP_MESSAGING_DESTINATION_KIND, + TMP_MESSAGING_TEMP_DESTINATION, + TMP_MESSAGING_PROTOCOL, + TMP_MESSAGING_PROTOCOL_VERSION, + TMP_MESSAGING_URL, + TMP_MESSAGING_MESSAGE_ID, + TMP_MESSAGING_CONVERSATION_ID, + TMP_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES, + TMP_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES, + TMP_MESSAGING_OPERATION, + TMP_MESSAGING_CONSUMER_ID, + TMP_MESSAGING_RABBITMQ_ROUTING_KEY, + TMP_MESSAGING_KAFKA_MESSAGE_KEY, + TMP_MESSAGING_KAFKA_CONSUMER_GROUP, + TMP_MESSAGING_KAFKA_CLIENT_ID, + TMP_MESSAGING_KAFKA_PARTITION, + TMP_MESSAGING_KAFKA_TOMBSTONE, + TMP_RPC_SYSTEM, + TMP_RPC_SERVICE, + TMP_RPC_METHOD, + TMP_RPC_GRPC_STATUS_CODE, + TMP_RPC_JSONRPC_VERSION, + TMP_RPC_JSONRPC_REQUEST_ID, + TMP_RPC_JSONRPC_ERROR_CODE, + TMP_RPC_JSONRPC_ERROR_MESSAGE, + TMP_MESSAGE_TYPE, + TMP_MESSAGE_ID, + TMP_MESSAGE_COMPRESSED_SIZE, + TMP_MESSAGE_UNCOMPRESSED_SIZE, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for DbSystemValues enum definition + * + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_DBSYSTEMVALUES_OTHER_SQL = 'other_sql'; +const TMP_DBSYSTEMVALUES_MSSQL = 'mssql'; +const TMP_DBSYSTEMVALUES_MYSQL = 'mysql'; +const TMP_DBSYSTEMVALUES_ORACLE = 'oracle'; +const TMP_DBSYSTEMVALUES_DB2 = 'db2'; +const TMP_DBSYSTEMVALUES_POSTGRESQL = 'postgresql'; +const TMP_DBSYSTEMVALUES_REDSHIFT = 'redshift'; +const TMP_DBSYSTEMVALUES_HIVE = 'hive'; +const TMP_DBSYSTEMVALUES_CLOUDSCAPE = 'cloudscape'; +const TMP_DBSYSTEMVALUES_HSQLDB = 'hsqldb'; +const TMP_DBSYSTEMVALUES_PROGRESS = 'progress'; +const TMP_DBSYSTEMVALUES_MAXDB = 'maxdb'; +const TMP_DBSYSTEMVALUES_HANADB = 'hanadb'; +const TMP_DBSYSTEMVALUES_INGRES = 'ingres'; +const TMP_DBSYSTEMVALUES_FIRSTSQL = 'firstsql'; +const TMP_DBSYSTEMVALUES_EDB = 'edb'; +const TMP_DBSYSTEMVALUES_CACHE = 'cache'; +const TMP_DBSYSTEMVALUES_ADABAS = 'adabas'; +const TMP_DBSYSTEMVALUES_FIREBIRD = 'firebird'; +const TMP_DBSYSTEMVALUES_DERBY = 'derby'; +const TMP_DBSYSTEMVALUES_FILEMAKER = 'filemaker'; +const TMP_DBSYSTEMVALUES_INFORMIX = 'informix'; +const TMP_DBSYSTEMVALUES_INSTANTDB = 'instantdb'; +const TMP_DBSYSTEMVALUES_INTERBASE = 'interbase'; +const TMP_DBSYSTEMVALUES_MARIADB = 'mariadb'; +const TMP_DBSYSTEMVALUES_NETEZZA = 'netezza'; +const TMP_DBSYSTEMVALUES_PERVASIVE = 'pervasive'; +const TMP_DBSYSTEMVALUES_POINTBASE = 'pointbase'; +const TMP_DBSYSTEMVALUES_SQLITE = 'sqlite'; +const TMP_DBSYSTEMVALUES_SYBASE = 'sybase'; +const TMP_DBSYSTEMVALUES_TERADATA = 'teradata'; +const TMP_DBSYSTEMVALUES_VERTICA = 'vertica'; +const TMP_DBSYSTEMVALUES_H2 = 'h2'; +const TMP_DBSYSTEMVALUES_COLDFUSION = 'coldfusion'; +const TMP_DBSYSTEMVALUES_CASSANDRA = 'cassandra'; +const TMP_DBSYSTEMVALUES_HBASE = 'hbase'; +const TMP_DBSYSTEMVALUES_MONGODB = 'mongodb'; +const TMP_DBSYSTEMVALUES_REDIS = 'redis'; +const TMP_DBSYSTEMVALUES_COUCHBASE = 'couchbase'; +const TMP_DBSYSTEMVALUES_COUCHDB = 'couchdb'; +const TMP_DBSYSTEMVALUES_COSMOSDB = 'cosmosdb'; +const TMP_DBSYSTEMVALUES_DYNAMODB = 'dynamodb'; +const TMP_DBSYSTEMVALUES_NEO4J = 'neo4j'; +const TMP_DBSYSTEMVALUES_GEODE = 'geode'; +const TMP_DBSYSTEMVALUES_ELASTICSEARCH = 'elasticsearch'; +const TMP_DBSYSTEMVALUES_MEMCACHED = 'memcached'; +const TMP_DBSYSTEMVALUES_COCKROACHDB = 'cockroachdb'; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_OTHER_SQL = TMP_DBSYSTEMVALUES_OTHER_SQL; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_MSSQL = TMP_DBSYSTEMVALUES_MSSQL; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_MYSQL = TMP_DBSYSTEMVALUES_MYSQL; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_ORACLE = TMP_DBSYSTEMVALUES_ORACLE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_DB2 = TMP_DBSYSTEMVALUES_DB2; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_POSTGRESQL = TMP_DBSYSTEMVALUES_POSTGRESQL; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_REDSHIFT = TMP_DBSYSTEMVALUES_REDSHIFT; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_HIVE = TMP_DBSYSTEMVALUES_HIVE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_CLOUDSCAPE = TMP_DBSYSTEMVALUES_CLOUDSCAPE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_HSQLDB = TMP_DBSYSTEMVALUES_HSQLDB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_PROGRESS = TMP_DBSYSTEMVALUES_PROGRESS; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_MAXDB = TMP_DBSYSTEMVALUES_MAXDB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_HANADB = TMP_DBSYSTEMVALUES_HANADB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_INGRES = TMP_DBSYSTEMVALUES_INGRES; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_FIRSTSQL = TMP_DBSYSTEMVALUES_FIRSTSQL; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_EDB = TMP_DBSYSTEMVALUES_EDB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_CACHE = TMP_DBSYSTEMVALUES_CACHE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_ADABAS = TMP_DBSYSTEMVALUES_ADABAS; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_FIREBIRD = TMP_DBSYSTEMVALUES_FIREBIRD; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_DERBY = TMP_DBSYSTEMVALUES_DERBY; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_FILEMAKER = TMP_DBSYSTEMVALUES_FILEMAKER; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_INFORMIX = TMP_DBSYSTEMVALUES_INFORMIX; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_INSTANTDB = TMP_DBSYSTEMVALUES_INSTANTDB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_INTERBASE = TMP_DBSYSTEMVALUES_INTERBASE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_MARIADB = TMP_DBSYSTEMVALUES_MARIADB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_NETEZZA = TMP_DBSYSTEMVALUES_NETEZZA; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_PERVASIVE = TMP_DBSYSTEMVALUES_PERVASIVE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_POINTBASE = TMP_DBSYSTEMVALUES_POINTBASE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_SQLITE = TMP_DBSYSTEMVALUES_SQLITE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_SYBASE = TMP_DBSYSTEMVALUES_SYBASE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_TERADATA = TMP_DBSYSTEMVALUES_TERADATA; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_VERTICA = TMP_DBSYSTEMVALUES_VERTICA; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_H2 = TMP_DBSYSTEMVALUES_H2; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_COLDFUSION = TMP_DBSYSTEMVALUES_COLDFUSION; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_CASSANDRA = TMP_DBSYSTEMVALUES_CASSANDRA; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_HBASE = TMP_DBSYSTEMVALUES_HBASE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_MONGODB = TMP_DBSYSTEMVALUES_MONGODB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_REDIS = TMP_DBSYSTEMVALUES_REDIS; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_COUCHBASE = TMP_DBSYSTEMVALUES_COUCHBASE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_COUCHDB = TMP_DBSYSTEMVALUES_COUCHDB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_COSMOSDB = TMP_DBSYSTEMVALUES_COSMOSDB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_DYNAMODB = TMP_DBSYSTEMVALUES_DYNAMODB; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_NEO4J = TMP_DBSYSTEMVALUES_NEO4J; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_GEODE = TMP_DBSYSTEMVALUES_GEODE; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_ELASTICSEARCH = TMP_DBSYSTEMVALUES_ELASTICSEARCH; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_MEMCACHED = TMP_DBSYSTEMVALUES_MEMCACHED; + +/** + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + */ +export const DBSYSTEMVALUES_COCKROACHDB = TMP_DBSYSTEMVALUES_COCKROACHDB; + +/** + * Identifies the Values for DbSystemValues enum definition + * + * An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers. + * @deprecated Use the DBSYSTEMVALUES_XXXXX constants rather than the DbSystemValues.XXXXX for bundle minification. + */ +export type DbSystemValues = { /** Some other SQL database. Fallback only. See notes. */ - OTHER_SQL: 'other_sql', + OTHER_SQL: 'other_sql'; + /** Microsoft SQL Server. */ - MSSQL: 'mssql', + MSSQL: 'mssql'; + /** MySQL. */ - MYSQL: 'mysql', + MYSQL: 'mysql'; + /** Oracle Database. */ - ORACLE: 'oracle', + ORACLE: 'oracle'; + /** IBM Db2. */ - DB2: 'db2', + DB2: 'db2'; + /** PostgreSQL. */ - POSTGRESQL: 'postgresql', + POSTGRESQL: 'postgresql'; + /** Amazon Redshift. */ - REDSHIFT: 'redshift', + REDSHIFT: 'redshift'; + /** Apache Hive. */ - HIVE: 'hive', + HIVE: 'hive'; + /** Cloudscape. */ - CLOUDSCAPE: 'cloudscape', + CLOUDSCAPE: 'cloudscape'; + /** HyperSQL DataBase. */ - HSQLDB: 'hsqldb', + HSQLDB: 'hsqldb'; + /** Progress Database. */ - PROGRESS: 'progress', + PROGRESS: 'progress'; + /** SAP MaxDB. */ - MAXDB: 'maxdb', + MAXDB: 'maxdb'; + /** SAP HANA. */ - HANADB: 'hanadb', + HANADB: 'hanadb'; + /** Ingres. */ - INGRES: 'ingres', + INGRES: 'ingres'; + /** FirstSQL. */ - FIRSTSQL: 'firstsql', + FIRSTSQL: 'firstsql'; + /** EnterpriseDB. */ - EDB: 'edb', + EDB: 'edb'; + /** InterSystems Caché. */ - CACHE: 'cache', + CACHE: 'cache'; + /** Adabas (Adaptable Database System). */ - ADABAS: 'adabas', + ADABAS: 'adabas'; + /** Firebird. */ - FIREBIRD: 'firebird', + FIREBIRD: 'firebird'; + /** Apache Derby. */ - DERBY: 'derby', + DERBY: 'derby'; + /** FileMaker. */ - FILEMAKER: 'filemaker', + FILEMAKER: 'filemaker'; + /** Informix. */ - INFORMIX: 'informix', + INFORMIX: 'informix'; + /** InstantDB. */ - INSTANTDB: 'instantdb', + INSTANTDB: 'instantdb'; + /** InterBase. */ - INTERBASE: 'interbase', + INTERBASE: 'interbase'; + /** MariaDB. */ - MARIADB: 'mariadb', + MARIADB: 'mariadb'; + /** Netezza. */ - NETEZZA: 'netezza', + NETEZZA: 'netezza'; + /** Pervasive PSQL. */ - PERVASIVE: 'pervasive', + PERVASIVE: 'pervasive'; + /** PointBase. */ - POINTBASE: 'pointbase', + POINTBASE: 'pointbase'; + /** SQLite. */ - SQLITE: 'sqlite', + SQLITE: 'sqlite'; + /** Sybase. */ - SYBASE: 'sybase', + SYBASE: 'sybase'; + /** Teradata. */ - TERADATA: 'teradata', + TERADATA: 'teradata'; + /** Vertica. */ - VERTICA: 'vertica', + VERTICA: 'vertica'; + /** H2. */ - H2: 'h2', + H2: 'h2'; + /** ColdFusion IMQ. */ - COLDFUSION: 'coldfusion', + COLDFUSION: 'coldfusion'; + /** Apache Cassandra. */ - CASSANDRA: 'cassandra', + CASSANDRA: 'cassandra'; + /** Apache HBase. */ - HBASE: 'hbase', + HBASE: 'hbase'; + /** MongoDB. */ - MONGODB: 'mongodb', + MONGODB: 'mongodb'; + /** Redis. */ - REDIS: 'redis', + REDIS: 'redis'; + /** Couchbase. */ - COUCHBASE: 'couchbase', + COUCHBASE: 'couchbase'; + /** CouchDB. */ - COUCHDB: 'couchdb', + COUCHDB: 'couchdb'; + /** Microsoft Azure Cosmos DB. */ - COSMOSDB: 'cosmosdb', + COSMOSDB: 'cosmosdb'; + /** Amazon DynamoDB. */ - DYNAMODB: 'dynamodb', + DYNAMODB: 'dynamodb'; + /** Neo4j. */ - NEO4J: 'neo4j', + NEO4J: 'neo4j'; + /** Apache Geode. */ - GEODE: 'geode', + GEODE: 'geode'; + /** Elasticsearch. */ - ELASTICSEARCH: 'elasticsearch', + ELASTICSEARCH: 'elasticsearch'; + /** Memcached. */ - MEMCACHED: 'memcached', + MEMCACHED: 'memcached'; + /** CockroachDB. */ - COCKROACHDB: 'cockroachdb', -} as const; -export type DbSystemValues = - (typeof DbSystemValues)[keyof typeof DbSystemValues]; + COCKROACHDB: 'cockroachdb'; +}; + +/** + * The constant map of values for DbSystemValues. + * @deprecated Use the DBSYSTEMVALUES_XXXXX constants rather than the DbSystemValues.XXXXX for bundle minification. + */ +export const DbSystemValues: DbSystemValues = + /*#__PURE__*/ createConstMap([ + TMP_DBSYSTEMVALUES_OTHER_SQL, + TMP_DBSYSTEMVALUES_MSSQL, + TMP_DBSYSTEMVALUES_MYSQL, + TMP_DBSYSTEMVALUES_ORACLE, + TMP_DBSYSTEMVALUES_DB2, + TMP_DBSYSTEMVALUES_POSTGRESQL, + TMP_DBSYSTEMVALUES_REDSHIFT, + TMP_DBSYSTEMVALUES_HIVE, + TMP_DBSYSTEMVALUES_CLOUDSCAPE, + TMP_DBSYSTEMVALUES_HSQLDB, + TMP_DBSYSTEMVALUES_PROGRESS, + TMP_DBSYSTEMVALUES_MAXDB, + TMP_DBSYSTEMVALUES_HANADB, + TMP_DBSYSTEMVALUES_INGRES, + TMP_DBSYSTEMVALUES_FIRSTSQL, + TMP_DBSYSTEMVALUES_EDB, + TMP_DBSYSTEMVALUES_CACHE, + TMP_DBSYSTEMVALUES_ADABAS, + TMP_DBSYSTEMVALUES_FIREBIRD, + TMP_DBSYSTEMVALUES_DERBY, + TMP_DBSYSTEMVALUES_FILEMAKER, + TMP_DBSYSTEMVALUES_INFORMIX, + TMP_DBSYSTEMVALUES_INSTANTDB, + TMP_DBSYSTEMVALUES_INTERBASE, + TMP_DBSYSTEMVALUES_MARIADB, + TMP_DBSYSTEMVALUES_NETEZZA, + TMP_DBSYSTEMVALUES_PERVASIVE, + TMP_DBSYSTEMVALUES_POINTBASE, + TMP_DBSYSTEMVALUES_SQLITE, + TMP_DBSYSTEMVALUES_SYBASE, + TMP_DBSYSTEMVALUES_TERADATA, + TMP_DBSYSTEMVALUES_VERTICA, + TMP_DBSYSTEMVALUES_H2, + TMP_DBSYSTEMVALUES_COLDFUSION, + TMP_DBSYSTEMVALUES_CASSANDRA, + TMP_DBSYSTEMVALUES_HBASE, + TMP_DBSYSTEMVALUES_MONGODB, + TMP_DBSYSTEMVALUES_REDIS, + TMP_DBSYSTEMVALUES_COUCHBASE, + TMP_DBSYSTEMVALUES_COUCHDB, + TMP_DBSYSTEMVALUES_COSMOSDB, + TMP_DBSYSTEMVALUES_DYNAMODB, + TMP_DBSYSTEMVALUES_NEO4J, + TMP_DBSYSTEMVALUES_GEODE, + TMP_DBSYSTEMVALUES_ELASTICSEARCH, + TMP_DBSYSTEMVALUES_MEMCACHED, + TMP_DBSYSTEMVALUES_COCKROACHDB, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for DbCassandraConsistencyLevelValues enum definition + * + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL = 'all'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM = 'each_quorum'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM = 'quorum'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM = 'local_quorum'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE = 'one'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO = 'two'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE = 'three'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE = 'local_one'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY = 'any'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL = 'serial'; +const TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL = 'local_serial'; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_ALL = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_ONE = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_TWO = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_THREE = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_ANY = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL; + +/** + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + */ +export const DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL = + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL; -export const DbCassandraConsistencyLevelValues = { +/** + * Identifies the Values for DbCassandraConsistencyLevelValues enum definition + * + * The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). + * @deprecated Use the DBCASSANDRACONSISTENCYLEVELVALUES_XXXXX constants rather than the DbCassandraConsistencyLevelValues.XXXXX for bundle minification. + */ +export type DbCassandraConsistencyLevelValues = { /** all. */ - ALL: 'all', + ALL: 'all'; + /** each_quorum. */ - EACH_QUORUM: 'each_quorum', + EACH_QUORUM: 'each_quorum'; + /** quorum. */ - QUORUM: 'quorum', + QUORUM: 'quorum'; + /** local_quorum. */ - LOCAL_QUORUM: 'local_quorum', + LOCAL_QUORUM: 'local_quorum'; + /** one. */ - ONE: 'one', + ONE: 'one'; + /** two. */ - TWO: 'two', + TWO: 'two'; + /** three. */ - THREE: 'three', + THREE: 'three'; + /** local_one. */ - LOCAL_ONE: 'local_one', + LOCAL_ONE: 'local_one'; + /** any. */ - ANY: 'any', + ANY: 'any'; + /** serial. */ - SERIAL: 'serial', + SERIAL: 'serial'; + /** local_serial. */ - LOCAL_SERIAL: 'local_serial', -} as const; -export type DbCassandraConsistencyLevelValues = - (typeof DbCassandraConsistencyLevelValues)[keyof typeof DbCassandraConsistencyLevelValues]; + LOCAL_SERIAL: 'local_serial'; +}; + +/** + * The constant map of values for DbCassandraConsistencyLevelValues. + * @deprecated Use the DBCASSANDRACONSISTENCYLEVELVALUES_XXXXX constants rather than the DbCassandraConsistencyLevelValues.XXXXX for bundle minification. + */ +export const DbCassandraConsistencyLevelValues: DbCassandraConsistencyLevelValues = + /*#__PURE__*/ createConstMap([ + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ALL, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ONE, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_TWO, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_THREE, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_ANY, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL, + TMP_DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for FaasTriggerValues enum definition + * + * Type of the trigger on which the function is executed. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_FAASTRIGGERVALUES_DATASOURCE = 'datasource'; +const TMP_FAASTRIGGERVALUES_HTTP = 'http'; +const TMP_FAASTRIGGERVALUES_PUBSUB = 'pubsub'; +const TMP_FAASTRIGGERVALUES_TIMER = 'timer'; +const TMP_FAASTRIGGERVALUES_OTHER = 'other'; + +/** + * Type of the trigger on which the function is executed. + */ +export const FAASTRIGGERVALUES_DATASOURCE = TMP_FAASTRIGGERVALUES_DATASOURCE; + +/** + * Type of the trigger on which the function is executed. + */ +export const FAASTRIGGERVALUES_HTTP = TMP_FAASTRIGGERVALUES_HTTP; + +/** + * Type of the trigger on which the function is executed. + */ +export const FAASTRIGGERVALUES_PUBSUB = TMP_FAASTRIGGERVALUES_PUBSUB; + +/** + * Type of the trigger on which the function is executed. + */ +export const FAASTRIGGERVALUES_TIMER = TMP_FAASTRIGGERVALUES_TIMER; + +/** + * Type of the trigger on which the function is executed. + */ +export const FAASTRIGGERVALUES_OTHER = TMP_FAASTRIGGERVALUES_OTHER; + +/** + * Identifies the Values for FaasTriggerValues enum definition + * + * Type of the trigger on which the function is executed. + * @deprecated Use the FAASTRIGGERVALUES_XXXXX constants rather than the FaasTriggerValues.XXXXX for bundle minification. + */ +export type FaasTriggerValues = { + /** A response to some data source operation such as a database or filesystem read/write. */ + DATASOURCE: 'datasource'; + + /** To provide an answer to an inbound HTTP request. */ + HTTP: 'http'; + + /** A function is set to be executed when messages are sent to a messaging system. */ + PUBSUB: 'pubsub'; + + /** A function is scheduled to be executed regularly. */ + TIMER: 'timer'; + + /** If none of the others apply. */ + OTHER: 'other'; +}; + +/** + * The constant map of values for FaasTriggerValues. + * @deprecated Use the FAASTRIGGERVALUES_XXXXX constants rather than the FaasTriggerValues.XXXXX for bundle minification. + */ +export const FaasTriggerValues: FaasTriggerValues = + /*#__PURE__*/ createConstMap([ + TMP_FAASTRIGGERVALUES_DATASOURCE, + TMP_FAASTRIGGERVALUES_HTTP, + TMP_FAASTRIGGERVALUES_PUBSUB, + TMP_FAASTRIGGERVALUES_TIMER, + TMP_FAASTRIGGERVALUES_OTHER, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for FaasDocumentOperationValues enum definition + * + * Describes the type of the operation that was performed on the data. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_FAASDOCUMENTOPERATIONVALUES_INSERT = 'insert'; +const TMP_FAASDOCUMENTOPERATIONVALUES_EDIT = 'edit'; +const TMP_FAASDOCUMENTOPERATIONVALUES_DELETE = 'delete'; + +/** + * Describes the type of the operation that was performed on the data. + */ +export const FAASDOCUMENTOPERATIONVALUES_INSERT = + TMP_FAASDOCUMENTOPERATIONVALUES_INSERT; + +/** + * Describes the type of the operation that was performed on the data. + */ +export const FAASDOCUMENTOPERATIONVALUES_EDIT = + TMP_FAASDOCUMENTOPERATIONVALUES_EDIT; + +/** + * Describes the type of the operation that was performed on the data. + */ +export const FAASDOCUMENTOPERATIONVALUES_DELETE = + TMP_FAASDOCUMENTOPERATIONVALUES_DELETE; + +/** + * Identifies the Values for FaasDocumentOperationValues enum definition + * + * Describes the type of the operation that was performed on the data. + * @deprecated Use the FAASDOCUMENTOPERATIONVALUES_XXXXX constants rather than the FaasDocumentOperationValues.XXXXX for bundle minification. + */ +export type FaasDocumentOperationValues = { + /** When a new object is created. */ + INSERT: 'insert'; + + /** When an object is modified. */ + EDIT: 'edit'; + + /** When an object is deleted. */ + DELETE: 'delete'; +}; + +/** + * The constant map of values for FaasDocumentOperationValues. + * @deprecated Use the FAASDOCUMENTOPERATIONVALUES_XXXXX constants rather than the FaasDocumentOperationValues.XXXXX for bundle minification. + */ +export const FaasDocumentOperationValues: FaasDocumentOperationValues = + /*#__PURE__*/ createConstMap([ + TMP_FAASDOCUMENTOPERATIONVALUES_INSERT, + TMP_FAASDOCUMENTOPERATIONVALUES_EDIT, + TMP_FAASDOCUMENTOPERATIONVALUES_DELETE, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for FaasInvokedProviderValues enum definition + * + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD = 'alibaba_cloud'; +const TMP_FAASINVOKEDPROVIDERVALUES_AWS = 'aws'; +const TMP_FAASINVOKEDPROVIDERVALUES_AZURE = 'azure'; +const TMP_FAASINVOKEDPROVIDERVALUES_GCP = 'gcp'; + +/** + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + */ +export const FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD = + TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD; -export const FaasTriggerValues = { - /** A response to some data source operation such as a database or filesystem read/write. */ - DATASOURCE: 'datasource', - /** To provide an answer to an inbound HTTP request. */ - HTTP: 'http', - /** A function is set to be executed when messages are sent to a messaging system. */ - PUBSUB: 'pubsub', - /** A function is scheduled to be executed regularly. */ - TIMER: 'timer', - /** If none of the others apply. */ - OTHER: 'other', -} as const; -export type FaasTriggerValues = - (typeof FaasTriggerValues)[keyof typeof FaasTriggerValues]; +/** + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + */ +export const FAASINVOKEDPROVIDERVALUES_AWS = TMP_FAASINVOKEDPROVIDERVALUES_AWS; -export const FaasDocumentOperationValues = { - /** When a new object is created. */ - INSERT: 'insert', - /** When an object is modified. */ - EDIT: 'edit', - /** When an object is deleted. */ - DELETE: 'delete', -} as const; -export type FaasDocumentOperationValues = - (typeof FaasDocumentOperationValues)[keyof typeof FaasDocumentOperationValues]; +/** + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + */ +export const FAASINVOKEDPROVIDERVALUES_AZURE = + TMP_FAASINVOKEDPROVIDERVALUES_AZURE; -export const FaasInvokedProviderValues = { +/** + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + */ +export const FAASINVOKEDPROVIDERVALUES_GCP = TMP_FAASINVOKEDPROVIDERVALUES_GCP; + +/** + * Identifies the Values for FaasInvokedProviderValues enum definition + * + * The cloud provider of the invoked function. + * + * Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked function. + * @deprecated Use the FAASINVOKEDPROVIDERVALUES_XXXXX constants rather than the FaasInvokedProviderValues.XXXXX for bundle minification. + */ +export type FaasInvokedProviderValues = { /** Alibaba Cloud. */ - ALIBABA_CLOUD: 'alibaba_cloud', + ALIBABA_CLOUD: 'alibaba_cloud'; + /** Amazon Web Services. */ - AWS: 'aws', + AWS: 'aws'; + /** Microsoft Azure. */ - AZURE: 'azure', + AZURE: 'azure'; + /** Google Cloud Platform. */ - GCP: 'gcp', -} as const; -export type FaasInvokedProviderValues = - (typeof FaasInvokedProviderValues)[keyof typeof FaasInvokedProviderValues]; + GCP: 'gcp'; +}; + +/** + * The constant map of values for FaasInvokedProviderValues. + * @deprecated Use the FAASINVOKEDPROVIDERVALUES_XXXXX constants rather than the FaasInvokedProviderValues.XXXXX for bundle minification. + */ +export const FaasInvokedProviderValues: FaasInvokedProviderValues = + /*#__PURE__*/ createConstMap([ + TMP_FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD, + TMP_FAASINVOKEDPROVIDERVALUES_AWS, + TMP_FAASINVOKEDPROVIDERVALUES_AZURE, + TMP_FAASINVOKEDPROVIDERVALUES_GCP, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for NetTransportValues enum definition + * + * Transport protocol used. See note below. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_NETTRANSPORTVALUES_IP_TCP = 'ip_tcp'; +const TMP_NETTRANSPORTVALUES_IP_UDP = 'ip_udp'; +const TMP_NETTRANSPORTVALUES_IP = 'ip'; +const TMP_NETTRANSPORTVALUES_UNIX = 'unix'; +const TMP_NETTRANSPORTVALUES_PIPE = 'pipe'; +const TMP_NETTRANSPORTVALUES_INPROC = 'inproc'; +const TMP_NETTRANSPORTVALUES_OTHER = 'other'; + +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_IP_TCP = TMP_NETTRANSPORTVALUES_IP_TCP; + +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_IP_UDP = TMP_NETTRANSPORTVALUES_IP_UDP; + +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_IP = TMP_NETTRANSPORTVALUES_IP; + +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_UNIX = TMP_NETTRANSPORTVALUES_UNIX; -export const NetTransportValues = { +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_PIPE = TMP_NETTRANSPORTVALUES_PIPE; + +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_INPROC = TMP_NETTRANSPORTVALUES_INPROC; + +/** + * Transport protocol used. See note below. + */ +export const NETTRANSPORTVALUES_OTHER = TMP_NETTRANSPORTVALUES_OTHER; + +/** + * Identifies the Values for NetTransportValues enum definition + * + * Transport protocol used. See note below. + * @deprecated Use the NETTRANSPORTVALUES_XXXXX constants rather than the NetTransportValues.XXXXX for bundle minification. + */ +export type NetTransportValues = { /** ip_tcp. */ - IP_TCP: 'ip_tcp', + IP_TCP: 'ip_tcp'; + /** ip_udp. */ - IP_UDP: 'ip_udp', + IP_UDP: 'ip_udp'; + /** Another IP-based protocol. */ - IP: 'ip', + IP: 'ip'; + /** Unix Domain socket. See below. */ - UNIX: 'unix', + UNIX: 'unix'; + /** Named or anonymous pipe. See note below. */ - PIPE: 'pipe', + PIPE: 'pipe'; + /** In-process communication. */ - INPROC: 'inproc', + INPROC: 'inproc'; + /** Something else (non IP-based). */ - OTHER: 'other', -} as const; -export type NetTransportValues = - (typeof NetTransportValues)[keyof typeof NetTransportValues]; + OTHER: 'other'; +}; + +/** + * The constant map of values for NetTransportValues. + * @deprecated Use the NETTRANSPORTVALUES_XXXXX constants rather than the NetTransportValues.XXXXX for bundle minification. + */ +export const NetTransportValues: NetTransportValues = + /*#__PURE__*/ createConstMap([ + TMP_NETTRANSPORTVALUES_IP_TCP, + TMP_NETTRANSPORTVALUES_IP_UDP, + TMP_NETTRANSPORTVALUES_IP, + TMP_NETTRANSPORTVALUES_UNIX, + TMP_NETTRANSPORTVALUES_PIPE, + TMP_NETTRANSPORTVALUES_INPROC, + TMP_NETTRANSPORTVALUES_OTHER, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for NetHostConnectionTypeValues enum definition + * + * The internet connection type currently being used by the host. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI = 'wifi'; +const TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED = 'wired'; +const TMP_NETHOSTCONNECTIONTYPEVALUES_CELL = 'cell'; +const TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE = 'unavailable'; +const TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN = 'unknown'; + +/** + * The internet connection type currently being used by the host. + */ +export const NETHOSTCONNECTIONTYPEVALUES_WIFI = + TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI; + +/** + * The internet connection type currently being used by the host. + */ +export const NETHOSTCONNECTIONTYPEVALUES_WIRED = + TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED; + +/** + * The internet connection type currently being used by the host. + */ +export const NETHOSTCONNECTIONTYPEVALUES_CELL = + TMP_NETHOSTCONNECTIONTYPEVALUES_CELL; + +/** + * The internet connection type currently being used by the host. + */ +export const NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE = + TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE; + +/** + * The internet connection type currently being used by the host. + */ +export const NETHOSTCONNECTIONTYPEVALUES_UNKNOWN = + TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN; -export const NetHostConnectionTypeValues = { +/** + * Identifies the Values for NetHostConnectionTypeValues enum definition + * + * The internet connection type currently being used by the host. + * @deprecated Use the NETHOSTCONNECTIONTYPEVALUES_XXXXX constants rather than the NetHostConnectionTypeValues.XXXXX for bundle minification. + */ +export type NetHostConnectionTypeValues = { /** wifi. */ - WIFI: 'wifi', + WIFI: 'wifi'; + /** wired. */ - WIRED: 'wired', + WIRED: 'wired'; + /** cell. */ - CELL: 'cell', + CELL: 'cell'; + /** unavailable. */ - UNAVAILABLE: 'unavailable', + UNAVAILABLE: 'unavailable'; + /** unknown. */ - UNKNOWN: 'unknown', -} as const; -export type NetHostConnectionTypeValues = - (typeof NetHostConnectionTypeValues)[keyof typeof NetHostConnectionTypeValues]; + UNKNOWN: 'unknown'; +}; + +/** + * The constant map of values for NetHostConnectionTypeValues. + * @deprecated Use the NETHOSTCONNECTIONTYPEVALUES_XXXXX constants rather than the NetHostConnectionTypeValues.XXXXX for bundle minification. + */ +export const NetHostConnectionTypeValues: NetHostConnectionTypeValues = + /*#__PURE__*/ createConstMap([ + TMP_NETHOSTCONNECTIONTYPEVALUES_WIFI, + TMP_NETHOSTCONNECTIONTYPEVALUES_WIRED, + TMP_NETHOSTCONNECTIONTYPEVALUES_CELL, + TMP_NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE, + TMP_NETHOSTCONNECTIONTYPEVALUES_UNKNOWN, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for NetHostConnectionSubtypeValues enum definition + * + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS = 'gprs'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE = 'edge'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS = 'umts'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA = 'cdma'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0 = 'evdo_0'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A = 'evdo_a'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT = 'cdma2000_1xrtt'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA = 'hsdpa'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA = 'hsupa'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA = 'hspa'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN = 'iden'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B = 'evdo_b'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE = 'lte'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD = 'ehrpd'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP = 'hspap'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM = 'gsm'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA = 'td_scdma'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN = 'iwlan'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR = 'nr'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA = 'nrnsa'; +const TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA = 'lte_ca'; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_GPRS = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_EDGE = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_UMTS = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_CDMA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0 = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_HSPA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_IDEN = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_LTE = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD; -export const NetHostConnectionSubtypeValues = { +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_GSM = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_NR = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA; + +/** + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + */ +export const NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA = + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA; + +/** + * Identifies the Values for NetHostConnectionSubtypeValues enum definition + * + * This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection. + * @deprecated Use the NETHOSTCONNECTIONSUBTYPEVALUES_XXXXX constants rather than the NetHostConnectionSubtypeValues.XXXXX for bundle minification. + */ +export type NetHostConnectionSubtypeValues = { /** GPRS. */ - GPRS: 'gprs', + GPRS: 'gprs'; + /** EDGE. */ - EDGE: 'edge', + EDGE: 'edge'; + /** UMTS. */ - UMTS: 'umts', + UMTS: 'umts'; + /** CDMA. */ - CDMA: 'cdma', + CDMA: 'cdma'; + /** EVDO Rel. 0. */ - EVDO_0: 'evdo_0', + EVDO_0: 'evdo_0'; + /** EVDO Rev. A. */ - EVDO_A: 'evdo_a', + EVDO_A: 'evdo_a'; + /** CDMA2000 1XRTT. */ - CDMA2000_1XRTT: 'cdma2000_1xrtt', + CDMA2000_1XRTT: 'cdma2000_1xrtt'; + /** HSDPA. */ - HSDPA: 'hsdpa', + HSDPA: 'hsdpa'; + /** HSUPA. */ - HSUPA: 'hsupa', + HSUPA: 'hsupa'; + /** HSPA. */ - HSPA: 'hspa', + HSPA: 'hspa'; + /** IDEN. */ - IDEN: 'iden', + IDEN: 'iden'; + /** EVDO Rev. B. */ - EVDO_B: 'evdo_b', + EVDO_B: 'evdo_b'; + /** LTE. */ - LTE: 'lte', + LTE: 'lte'; + /** EHRPD. */ - EHRPD: 'ehrpd', + EHRPD: 'ehrpd'; + /** HSPAP. */ - HSPAP: 'hspap', + HSPAP: 'hspap'; + /** GSM. */ - GSM: 'gsm', + GSM: 'gsm'; + /** TD-SCDMA. */ - TD_SCDMA: 'td_scdma', + TD_SCDMA: 'td_scdma'; + /** IWLAN. */ - IWLAN: 'iwlan', + IWLAN: 'iwlan'; + /** 5G NR (New Radio). */ - NR: 'nr', + NR: 'nr'; + /** 5G NRNSA (New Radio Non-Standalone). */ - NRNSA: 'nrnsa', + NRNSA: 'nrnsa'; + /** LTE CA. */ - LTE_CA: 'lte_ca', -} as const; -export type NetHostConnectionSubtypeValues = - (typeof NetHostConnectionSubtypeValues)[keyof typeof NetHostConnectionSubtypeValues]; + LTE_CA: 'lte_ca'; +}; + +/** + * The constant map of values for NetHostConnectionSubtypeValues. + * @deprecated Use the NETHOSTCONNECTIONSUBTYPEVALUES_XXXXX constants rather than the NetHostConnectionSubtypeValues.XXXXX for bundle minification. + */ +export const NetHostConnectionSubtypeValues: NetHostConnectionSubtypeValues = + /*#__PURE__*/ createConstMap([ + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GPRS, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EDGE, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_UMTS, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPA, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IDEN, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_GSM, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NR, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA, + TMP_NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for HttpFlavorValues enum definition + * + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_HTTPFLAVORVALUES_HTTP_1_0 = '1.0'; +const TMP_HTTPFLAVORVALUES_HTTP_1_1 = '1.1'; +const TMP_HTTPFLAVORVALUES_HTTP_2_0 = '2.0'; +const TMP_HTTPFLAVORVALUES_SPDY = 'SPDY'; +const TMP_HTTPFLAVORVALUES_QUIC = 'QUIC'; + +/** + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + */ +export const HTTPFLAVORVALUES_HTTP_1_0 = TMP_HTTPFLAVORVALUES_HTTP_1_0; + +/** + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + */ +export const HTTPFLAVORVALUES_HTTP_1_1 = TMP_HTTPFLAVORVALUES_HTTP_1_1; + +/** + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + */ +export const HTTPFLAVORVALUES_HTTP_2_0 = TMP_HTTPFLAVORVALUES_HTTP_2_0; + +/** + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + */ +export const HTTPFLAVORVALUES_SPDY = TMP_HTTPFLAVORVALUES_SPDY; -export const HttpFlavorValues = { +/** + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + */ +export const HTTPFLAVORVALUES_QUIC = TMP_HTTPFLAVORVALUES_QUIC; + +/** + * Identifies the Values for HttpFlavorValues enum definition + * + * Kind of HTTP protocol used. + * + * Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP` except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed. + * @deprecated Use the HTTPFLAVORVALUES_XXXXX constants rather than the HttpFlavorValues.XXXXX for bundle minification. + */ +export type HttpFlavorValues = { /** HTTP 1.0. */ - HTTP_1_0: '1.0', + HTTP_1_0: '1.0'; + /** HTTP 1.1. */ - HTTP_1_1: '1.1', + HTTP_1_1: '1.1'; + /** HTTP 2. */ - HTTP_2_0: '2.0', + HTTP_2_0: '2.0'; + /** SPDY protocol. */ - SPDY: 'SPDY', + SPDY: 'SPDY'; + /** QUIC protocol. */ - QUIC: 'QUIC', -} as const; -export type HttpFlavorValues = - (typeof HttpFlavorValues)[keyof typeof HttpFlavorValues]; + QUIC: 'QUIC'; +}; + +/** + * The constant map of values for HttpFlavorValues. + * @deprecated Use the HTTPFLAVORVALUES_XXXXX constants rather than the HttpFlavorValues.XXXXX for bundle minification. + */ +export const HttpFlavorValues: HttpFlavorValues = { + HTTP_1_0: TMP_HTTPFLAVORVALUES_HTTP_1_0, + HTTP_1_1: TMP_HTTPFLAVORVALUES_HTTP_1_1, + HTTP_2_0: TMP_HTTPFLAVORVALUES_HTTP_2_0, + SPDY: TMP_HTTPFLAVORVALUES_SPDY, + QUIC: TMP_HTTPFLAVORVALUES_QUIC, +}; + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for MessagingDestinationKindValues enum definition + * + * The kind of message destination. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE = 'queue'; +const TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC = 'topic'; + +/** + * The kind of message destination. + */ +export const MESSAGINGDESTINATIONKINDVALUES_QUEUE = + TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE; + +/** + * The kind of message destination. + */ +export const MESSAGINGDESTINATIONKINDVALUES_TOPIC = + TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC; -export const MessagingDestinationKindValues = { +/** + * Identifies the Values for MessagingDestinationKindValues enum definition + * + * The kind of message destination. + * @deprecated Use the MESSAGINGDESTINATIONKINDVALUES_XXXXX constants rather than the MessagingDestinationKindValues.XXXXX for bundle minification. + */ +export type MessagingDestinationKindValues = { /** A message sent to a queue. */ - QUEUE: 'queue', + QUEUE: 'queue'; + /** A message sent to a topic. */ - TOPIC: 'topic', -} as const; -export type MessagingDestinationKindValues = - (typeof MessagingDestinationKindValues)[keyof typeof MessagingDestinationKindValues]; + TOPIC: 'topic'; +}; + +/** + * The constant map of values for MessagingDestinationKindValues. + * @deprecated Use the MESSAGINGDESTINATIONKINDVALUES_XXXXX constants rather than the MessagingDestinationKindValues.XXXXX for bundle minification. + */ +export const MessagingDestinationKindValues: MessagingDestinationKindValues = + /*#__PURE__*/ createConstMap([ + TMP_MESSAGINGDESTINATIONKINDVALUES_QUEUE, + TMP_MESSAGINGDESTINATIONKINDVALUES_TOPIC, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for MessagingOperationValues enum definition + * + * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. + * ---------------------------------------------------------------------------------------------------------- */ -export const MessagingOperationValues = { +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_MESSAGINGOPERATIONVALUES_RECEIVE = 'receive'; +const TMP_MESSAGINGOPERATIONVALUES_PROCESS = 'process'; + +/** + * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. + */ +export const MESSAGINGOPERATIONVALUES_RECEIVE = + TMP_MESSAGINGOPERATIONVALUES_RECEIVE; + +/** + * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. + */ +export const MESSAGINGOPERATIONVALUES_PROCESS = + TMP_MESSAGINGOPERATIONVALUES_PROCESS; + +/** + * Identifies the Values for MessagingOperationValues enum definition + * + * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. + * @deprecated Use the MESSAGINGOPERATIONVALUES_XXXXX constants rather than the MessagingOperationValues.XXXXX for bundle minification. + */ +export type MessagingOperationValues = { /** receive. */ - RECEIVE: 'receive', + RECEIVE: 'receive'; + /** process. */ - PROCESS: 'process', -} as const; -export type MessagingOperationValues = - (typeof MessagingOperationValues)[keyof typeof MessagingOperationValues]; + PROCESS: 'process'; +}; + +/** + * The constant map of values for MessagingOperationValues. + * @deprecated Use the MESSAGINGOPERATIONVALUES_XXXXX constants rather than the MessagingOperationValues.XXXXX for bundle minification. + */ +export const MessagingOperationValues: MessagingOperationValues = + /*#__PURE__*/ createConstMap([ + TMP_MESSAGINGOPERATIONVALUES_RECEIVE, + TMP_MESSAGINGOPERATIONVALUES_PROCESS, + ]); + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for RpcGrpcStatusCodeValues enum definition + * + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_RPCGRPCSTATUSCODEVALUES_OK = 0; +const TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED = 1; +const TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN = 2; +const TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT = 3; +const TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED = 4; +const TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND = 5; +const TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS = 6; +const TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED = 7; +const TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED = 8; +const TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION = 9; +const TMP_RPCGRPCSTATUSCODEVALUES_ABORTED = 10; +const TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE = 11; +const TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED = 12; +const TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL = 13; +const TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE = 14; +const TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS = 15; +const TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED = 16; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_OK = TMP_RPCGRPCSTATUSCODEVALUES_OK; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_CANCELLED = + TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_UNKNOWN = + TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT = + TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED = + TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_NOT_FOUND = + TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS = + TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED = + TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED = + TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION = + TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_ABORTED = + TMP_RPCGRPCSTATUSCODEVALUES_ABORTED; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE = + TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED = + TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_INTERNAL = + TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_UNAVAILABLE = + TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_DATA_LOSS = + TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS; + +/** + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + */ +export const RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED = + TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED; -export const RpcGrpcStatusCodeValues = { +/** + * Identifies the Values for RpcGrpcStatusCodeValues enum definition + * + * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. + * @deprecated Use the RPCGRPCSTATUSCODEVALUES_XXXXX constants rather than the RpcGrpcStatusCodeValues.XXXXX for bundle minification. + */ +export type RpcGrpcStatusCodeValues = { /** OK. */ - OK: 0, + OK: 0; + /** CANCELLED. */ - CANCELLED: 1, + CANCELLED: 1; + /** UNKNOWN. */ - UNKNOWN: 2, + UNKNOWN: 2; + /** INVALID_ARGUMENT. */ - INVALID_ARGUMENT: 3, + INVALID_ARGUMENT: 3; + /** DEADLINE_EXCEEDED. */ - DEADLINE_EXCEEDED: 4, + DEADLINE_EXCEEDED: 4; + /** NOT_FOUND. */ - NOT_FOUND: 5, + NOT_FOUND: 5; + /** ALREADY_EXISTS. */ - ALREADY_EXISTS: 6, + ALREADY_EXISTS: 6; + /** PERMISSION_DENIED. */ - PERMISSION_DENIED: 7, + PERMISSION_DENIED: 7; + /** RESOURCE_EXHAUSTED. */ - RESOURCE_EXHAUSTED: 8, + RESOURCE_EXHAUSTED: 8; + /** FAILED_PRECONDITION. */ - FAILED_PRECONDITION: 9, + FAILED_PRECONDITION: 9; + /** ABORTED. */ - ABORTED: 10, + ABORTED: 10; + /** OUT_OF_RANGE. */ - OUT_OF_RANGE: 11, + OUT_OF_RANGE: 11; + /** UNIMPLEMENTED. */ - UNIMPLEMENTED: 12, + UNIMPLEMENTED: 12; + /** INTERNAL. */ - INTERNAL: 13, + INTERNAL: 13; + /** UNAVAILABLE. */ - UNAVAILABLE: 14, + UNAVAILABLE: 14; + /** DATA_LOSS. */ - DATA_LOSS: 15, + DATA_LOSS: 15; + /** UNAUTHENTICATED. */ - UNAUTHENTICATED: 16, -} as const; -export type RpcGrpcStatusCodeValues = - (typeof RpcGrpcStatusCodeValues)[keyof typeof RpcGrpcStatusCodeValues]; + UNAUTHENTICATED: 16; +}; -export const MessageTypeValues = { +/** + * The constant map of values for RpcGrpcStatusCodeValues. + * @deprecated Use the RPCGRPCSTATUSCODEVALUES_XXXXX constants rather than the RpcGrpcStatusCodeValues.XXXXX for bundle minification. + */ +export const RpcGrpcStatusCodeValues: RpcGrpcStatusCodeValues = { + OK: TMP_RPCGRPCSTATUSCODEVALUES_OK, + CANCELLED: TMP_RPCGRPCSTATUSCODEVALUES_CANCELLED, + UNKNOWN: TMP_RPCGRPCSTATUSCODEVALUES_UNKNOWN, + INVALID_ARGUMENT: TMP_RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT, + DEADLINE_EXCEEDED: TMP_RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED, + NOT_FOUND: TMP_RPCGRPCSTATUSCODEVALUES_NOT_FOUND, + ALREADY_EXISTS: TMP_RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS, + PERMISSION_DENIED: TMP_RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED, + RESOURCE_EXHAUSTED: TMP_RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED, + FAILED_PRECONDITION: TMP_RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION, + ABORTED: TMP_RPCGRPCSTATUSCODEVALUES_ABORTED, + OUT_OF_RANGE: TMP_RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE, + UNIMPLEMENTED: TMP_RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED, + INTERNAL: TMP_RPCGRPCSTATUSCODEVALUES_INTERNAL, + UNAVAILABLE: TMP_RPCGRPCSTATUSCODEVALUES_UNAVAILABLE, + DATA_LOSS: TMP_RPCGRPCSTATUSCODEVALUES_DATA_LOSS, + UNAUTHENTICATED: TMP_RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED, +}; + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for MessageTypeValues enum definition + * + * Whether this is a received or sent message. + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +const TMP_MESSAGETYPEVALUES_SENT = 'SENT'; +const TMP_MESSAGETYPEVALUES_RECEIVED = 'RECEIVED'; + +/** + * Whether this is a received or sent message. + */ +export const MESSAGETYPEVALUES_SENT = TMP_MESSAGETYPEVALUES_SENT; + +/** + * Whether this is a received or sent message. + */ +export const MESSAGETYPEVALUES_RECEIVED = TMP_MESSAGETYPEVALUES_RECEIVED; + +/** + * Identifies the Values for MessageTypeValues enum definition + * + * Whether this is a received or sent message. + * @deprecated Use the MESSAGETYPEVALUES_XXXXX constants rather than the MessageTypeValues.XXXXX for bundle minification. + */ +export type MessageTypeValues = { /** sent. */ - SENT: 'SENT', + SENT: 'SENT'; + /** received. */ - RECEIVED: 'RECEIVED', -} as const; -export type MessageTypeValues = - (typeof MessageTypeValues)[keyof typeof MessageTypeValues]; + RECEIVED: 'RECEIVED'; +}; + +/** + * The constant map of values for MessageTypeValues. + * @deprecated Use the MESSAGETYPEVALUES_XXXXX constants rather than the MessageTypeValues.XXXXX for bundle minification. + */ +export const MessageTypeValues: MessageTypeValues = + /*#__PURE__*/ createConstMap([ + TMP_MESSAGETYPEVALUES_SENT, + TMP_MESSAGETYPEVALUES_RECEIVED, + ]); diff --git a/packages/opentelemetry-semantic-conventions/test/helpers/autoImports.ts b/packages/opentelemetry-semantic-conventions/test/helpers/autoImports.ts new file mode 100644 index 0000000000..883b94b7bb --- /dev/null +++ b/packages/opentelemetry-semantic-conventions/test/helpers/autoImports.ts @@ -0,0 +1,202 @@ +/* + * 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 fs from 'fs'; +import * as path from 'path'; + +export interface IAutoImports { + getGroups: () => Array; + getGroupValues: (name: string) => Array; + getImportGroup: (name: string) => string; + getDebug: () => string; +} + +interface IImports { + file: string; + groups: { [key: string]: IAutoImportDef }; +} + +interface IAutoImportDef { + match: Array; + values: Array; +} + +const theImports: Array = [ + { + file: './src/trace/SemanticAttributes.ts', + groups: { + all: { + match: [/export\s+const\s+([\w]+)\s*[:=]+/g], + values: ['SemanticAttributes'], + }, + namespace: { + match: [], + values: ['SemanticAttributes'], + }, + allStrings: { + match: [/export\s+const\s+([\w]+)\s*=+/g], + values: [], + }, + http: { + match: [ + /export\s+const\s+(SEMATTRS_HTTP_[\w]+)\s*=+/g, + /export\s+const\s+(HTTP[\w]+)\s*=+/g, + ], + values: [], + }, + net: { + match: [ + /export\s+const\s+(SEMATTRS_NET_[\w]+)\s*=+/g, + /export\s+const\s+(NET[\w]+)\s*=+/g, + ], + values: [], + }, + messaging: { + match: [ + /export\s+const\s+(SEMATTRS_MESSAGING_[\w]+)\s*=+/g, + /export\s+const\s+(MESSAGING[\w]+)\s*=+/g, + ], + values: [], + }, + }, + }, + { + file: './src/resource/SemanticResourceAttributes.ts', + groups: { + all: { + match: [/export\s+const\s+([\w]+)\s*[:=]+/g], + values: ['SemanticResourceAttributes'], + }, + namespace: { + match: [], + values: ['SemanticResourceAttributes'], + }, + allStrings: { + match: [/export\s+const\s+([\w]+)\s*=+/g], + values: [], + }, + http: { + match: [ + /export\s+const\s+(SEMRESATTRS_HTTP_[\w]+)\s*=+/g, + /export\s+const\s+(HTTP[\w]+)\s*=+/g, + ], + values: [], + }, + net: { + match: [ + /export\s+const\s+(SEMRESATTRS_NET_[\w]+)\s*=+/g, + /export\s+const\s+(NET[\w]+)\s*=+/g, + ], + values: [], + }, + telemetry: { + match: [ + /export\s+const\s+(SEMRESATTRS_TELEMETRY_[\w]+)\s*=+/g, + /export\s+const\s+(TELEMETRY[\w]+)\s*=+/g, + ], + values: [], + }, + }, + }, +]; + +interface IImportValues { + first: boolean; + added: Array; + result: string; +} + +const _addImport = (theImport: string, state: IImportValues) => { + if (!state.added.includes(theImport)) { + if (!state.first) { + state.result += ', '; + } + + state.result += theImport; + state.added.push(theImport); + state.first = false; + + return true; + } + + return false; +}; + +export const getAutoImports = (): IAutoImports => { + // eslint-disable-next-line no-console + console.log('Resolving Auto Imports'); + + const importValues: { [key: string]: IImportValues } = {}; + + // Process each Import + theImports.forEach(imp => { + // eslint-disable-next-line no-console + console.log(' -- ' + imp.file); + + const filePath = path.resolve('.', imp.file); + const fileContent = fs.readFileSync(filePath, 'utf8'); + + // Process each group + Object.keys(imp.groups).forEach(groupName => { + // eslint-disable-next-line no-console + console.log(' ---- ' + groupName); + const group = imp.groups[groupName]; + if (!importValues[groupName]) { + importValues[groupName] = { + first: true, + added: [], + result: '', + }; + } + + // Add each pre-defined export + group.values.forEach(value => { + if (!_addImport(value, importValues[groupName])) { + // eslint-disable-next-line no-console + console.log(' ------ ' + value + ' already added value'); + } + }); + + if (fileContent) { + // Process each match + group.match.forEach(match => { + let matches: RegExpExecArray | null; + while ((matches = match.exec(fileContent)) && matches.length > 1) { + if (!_addImport(matches[1], importValues[groupName])) { + // eslint-disable-next-line no-console + console.log(' ------ ' + matches[1] + ' already added match'); + } + } + }); + } + }); + }); + + return { + getGroups: () => { + return Object.keys(importValues); + }, + getGroupValues: (name: string) => { + return (importValues[name] || {}).added || []; + }, + getImportGroup: (name: string) => { + return '{ ' + ((importValues[name] || {}).result || '') + ' }'; + }, + getDebug: () => { + return JSON.stringify(importValues, null, 2); + }, + }; +}; diff --git a/packages/opentelemetry-semantic-conventions/test/sizeLimit.test.ts b/packages/opentelemetry-semantic-conventions/test/sizeLimit.test.ts new file mode 100644 index 0000000000..0e01f8cc08 --- /dev/null +++ b/packages/opentelemetry-semantic-conventions/test/sizeLimit.test.ts @@ -0,0 +1,318 @@ +/* + * 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 child_process from 'child_process'; +import * as assert from 'assert'; +import * as path from 'path'; +import * as fs from 'fs'; +import { IAutoImports, getAutoImports } from './helpers/autoImports'; + +const rValues = + /^\s*(Size|Loading time|Running time|Total time):[^\d]+([\d.]+\s*[\w]+).*$/gm; + +const entryPoints = [ + { + name: 'cjs', + entry: './build/src/index.js', + }, + { + name: 'esm', + entry: './build/esm/index.js', + }, + { + name: 'esnext', + entry: './build/esnext/index.js', + }, +]; + +interface ISizeResult { + raw?: string; + size?: string; + loadTime?: string; + runTime?: string; + totalTime?: string; +} + +describe('size-limits', function () { + const autoImports: IAutoImports = getAutoImports(); + const results: { + [key: string]: { + full?: ISizeResult | null; + gzip?: ISizeResult | null; + brotli?: ISizeResult | null; + }; + } = {}; + const debugPath = path.resolve('./build/size-limit'); + + this.timeout(60000); + + const _formatResults = (results?: ISizeResult | null): string => { + let output = ''; + if (!results) { + return 'N/A'; + } + + const keys: Array = [ + 'size', + 'loadTime', + 'runTime', + 'totalTime', + ]; + keys.forEach(key => { + output += + key.padEnd(8, '.') + ': ' + (results[key] || '').padEnd(12, ' '); + }); + + return output; + }; + + const checkSize = ( + name: string, + filename: string, + imports: string, + gzip: boolean, + brotli: boolean + ): ISizeResult | null => { + const filePath = path.resolve('.', '.size-limit.json'); + try { + fs.writeFileSync( + filePath, + JSON.stringify([ + { + path: filename, + import: imports, + name: name, + gzip: gzip, + brotli: brotli, + }, + ]) + ); + + assert.ok(true, 'running'); + const value = child_process.execSync( + 'size-limit --save-bundle build/size-limit/' + name + ' --clean-dir' + ); + + let output = value.toString(); + // remove screen escaping + // eslint-disable-next-line no-control-regex + output = output.replace(/\x1b\[\d+m/g, ''); + const result: ISizeResult = {}; + + let matches: RegExpExecArray | null; + while ((matches = rValues.exec(output)) && matches.length > 1) { + switch (matches[1]) { + case 'Size': + result['size'] = matches[2]; + !result.raw && (result.raw = output); + break; + case 'Loading time': + result['loadTime'] = matches[2]; + !result.raw && (result.raw = output); + break; + case 'Running time': + result['runTime'] = matches[2]; + !result.raw && (result.raw = output); + break; + case 'Total time': + result['totalTime'] = matches[2]; + !result.raw && (result.raw = output); + break; + } + } + + assert.ok( + result && result.size, + 'size not present - ' + JSON.stringify(result.size) + '[' + value + ']' + ); + assert.ok( + result && result.loadTime, + 'loading time not present - ' + + JSON.stringify(result.loadTime) + + '[' + + value + + ']' + ); + assert.ok( + result && result.runTime, + 'run time not present - ' + + JSON.stringify(result.runTime) + + '[' + + value + + ']' + ); + assert.ok( + result && result.totalTime, + 'total time not present - ' + + JSON.stringify(result.totalTime) + + '[' + + value + + ']' + ); + //assert.ok(result && result.raw, "raw not present - " + JSON.stringify(result.raw) + "[" + value + "]"); + + return Object.keys(result).length > 0 ? result : null; + } finally { + fs.unlinkSync(filePath); + } + }; + + before(() => { + if (!fs.existsSync(debugPath)) { + fs.mkdirSync(debugPath, { recursive: true }); + } + + fs.writeFileSync( + path.resolve(debugPath, 'autoImports.debug.txt'), + autoImports.getDebug() + ); + }); + + after(() => { + // Log Results to Console + Object.keys(results).forEach(key => { + // eslint-disable-next-line no-console + console.log( + key.padEnd(16, '.') + + ': ' + + JSON.stringify( + { + full: _formatResults(results[key].full), + gzip: _formatResults(results[key].gzip), + brotli: _formatResults(results[key].brotli), + }, + null, + 2 + ) + ); + }); + + // Generate CSV Results + let csvResults = + 'Group,Full Size,Full Load Time,Full Run Time,Full Total Time,GZip Size,GZip Load Time,GZip Run Time,GZip Total Time,Brotli Size,Brotli Load Time,Brotli Run Time,Brotli Total Time\n'; + Object.keys(results).forEach(key => { + csvResults += + key + + ',' + + results[key].full?.size + + ',' + + results[key].full?.loadTime + + ',' + + results[key].full?.runTime + + ',' + + results[key].full?.totalTime + + ',' + + results[key].gzip?.size + + ',' + + results[key].gzip?.loadTime + + ',' + + results[key].gzip?.runTime + + ',' + + results[key].gzip?.totalTime + + ',' + + results[key].brotli?.size + + ',' + + results[key].brotli?.loadTime + + ',' + + results[key].brotli?.runTime + + ',' + + results[key].brotli?.totalTime + + '\n'; + }); + + // eslint-disable-next-line no-console + console.log( + "Writing results to '" + path.resolve(debugPath, 'results.csv') + "'" + ); + fs.writeFileSync(path.resolve(debugPath, 'results.csv'), csvResults); + + // Generate JSON Results for debugging + // eslint-disable-next-line no-console + console.log( + "Writing results to '" + path.resolve(debugPath, 'results.json') + "'" + ); + fs.writeFileSync( + path.resolve(debugPath, 'results.json'), + JSON.stringify(results, null, 2) + ); + }); + + entryPoints.forEach(entryPoint => { + describe('Checking ' + entryPoint.name, function () { + // eslint-disable-line no-undef + autoImports.getGroups().forEach(group => { + describe('Group ' + group, () => { + // eslint-disable-line no-undef + const checkResults: { + full?: ISizeResult | null; + gzip?: ISizeResult | null; + brotli?: ISizeResult | null; + } = {}; + + before(() => { + checkResults.full = checkSize( + entryPoint.name + '-' + group, + entryPoint.entry, + autoImports.getImportGroup(group), + false, + false + ); + checkResults.gzip = checkSize( + entryPoint.name + '-' + group, + entryPoint.entry, + autoImports.getImportGroup(group), + true, + false + ); + checkResults.brotli = checkSize( + entryPoint.name + '-' + group, + entryPoint.entry, + autoImports.getImportGroup(group), + false, + true + ); + }); + + it( + 'Calculating ' + + entryPoint.name + + '-' + + group + + ' (' + + autoImports.getGroupValues(group).length + + ')', + () => { + assert.ok( + checkResults.full, + 'full size found - ' + JSON.stringify(checkResults.full) + ); + assert.ok( + checkResults.gzip, + 'gZip size found - ' + JSON.stringify(checkResults.gzip) + ); + assert.ok( + checkResults.brotli, + 'brotli size found - ' + JSON.stringify(checkResults.brotli) + ); + + results[entryPoint.name + '-' + group] = checkResults; + } + ); + }); + }); + }); + }); +}); diff --git a/scripts/semconv/generate.sh b/scripts/semconv/generate.sh index dbd99464ea..2cec25d305 100755 --- a/scripts/semconv/generate.sh +++ b/scripts/semconv/generate.sh @@ -5,7 +5,11 @@ ROOT_DIR="${SCRIPT_DIR}/../../" # freeze the spec version to make SpanAttributess generation reproducible SPEC_VERSION=v1.7.0 -GENERATOR_VERSION=0.7.0 +GENERATOR_VERSION=0.8.0 + +# When running on windows and your are getting references to ";C" (like Telemetry;C) +# then this is an issue with the bash shell, so first run the following in your shell: +# export MSYS_NO_PATHCONV=1 cd ${SCRIPT_DIR} @@ -28,7 +32,8 @@ docker run --rm \ code \ --template /templates/SemanticAttributes.ts.j2 \ --output /output/SemanticAttributes.ts \ - -Dclass=SemanticAttributes + -Dclass=SemanticAttributes \ + -Dcls_prefix=SEMATTRS docker run --rm \ -v ${SCRIPT_DIR}/opentelemetry-specification/semantic_conventions/resource:/source \ @@ -39,9 +44,14 @@ docker run --rm \ code \ --template /templates/SemanticAttributes.ts.j2 \ --output /output/SemanticResourceAttributes.ts \ - -Dclass=SemanticResourceAttributes + -Dclass=SemanticResourceAttributes \ + -Dcls_prefix=SEMRESATTRS # Run the automatic linting fixing task to ensure it will pass eslint cd "$ROOT_DIR" npm run lint:fix:changed + +# Run the size checks for the generated files +cd "${ROOT_DIR}/packages/opentelemetry-semantic-conventions" +npm run size-check diff --git a/scripts/semconv/templates/SemanticAttributes.ts.j2 b/scripts/semconv/templates/SemanticAttributes.ts.j2 index eb144b93b2..0bbb4ebf7c 100644 --- a/scripts/semconv/templates/SemanticAttributes.ts.j2 +++ b/scripts/semconv/templates/SemanticAttributes.ts.j2 @@ -14,6 +14,7 @@ * limitations under the License. */ +import { createConstMap } from '../internal/utils'; {%- macro print_value(type, value) -%} {{ "'" if type == "string"}}{{value}}{{ "'" if type == "string"}} @@ -24,9 +25,49 @@ {%- macro lowerFirst(text) -%} {{ text[0]|lower}}{{text[1:] }} {%- endmacro %} +{%- macro normalizeName(value) -%} + {{ value.replace('.', '_') | upper }} +{%- endmacro %} +//---------------------------------------------------------------------------------------------------------- // DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates/{{template}} -export const {{class}} = { +//---------------------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------------------- +// Constant values for {{class}} +//---------------------------------------------------------------------------------------------------------- + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +{%- for attribute in attributes if attribute.is_local and not attribute.ref %} +const TMP_{{attribute.fqn | to_const_name}} = {{ print_value ("string", attribute.fqn) }}; +{%- endfor %} + +{%- for attribute in attributes if attribute.is_local and not attribute.ref %} + +/** +* {% filter escape %}{{attribute.brief | to_doc_brief}}.{% endfilter %} + {%- if attribute.note %} +* +* Note: {% filter escape %}{{attribute.note | to_doc_brief}}.{% endfilter %} + {%- endif %} + {%- if attribute.deprecated %} +* +* @deprecated {{attribute.deprecated | to_doc_brief}}. + {%- endif %} +*/ +export const {{cls_prefix}}_{{attribute.fqn | to_const_name}} = TMP_{{attribute.fqn | to_const_name}}; + +{%- endfor %} + +/** + * Definition of available values for {{class}} + * This type is used for backward compatibility, you should use the individual exported + * constants {{class}}_XXXXX rather than the exported constant map. As any single reference + * to a constant map value will result in all strings being included into your bundle. + * @deprecated Use the {{cls_prefix}}_XXXXX constants rather than the {{class}}.XXXXX for bundle minification. + */ +export type {{class}} = { {%- for attribute in attributes if attribute.is_local and not attribute.ref %} /** @@ -42,21 +83,118 @@ export const {{class}} = { */ {{attribute.fqn | to_const_name}}: '{{attribute.fqn}}', {%- endfor %} -} +}; + +/** + * Create exported Value Map for {{class}} values + * @deprecated Use the {{cls_prefix}}_XXXXX constants rather than the {{class}}.XXXXX for bundle minification + */ +export const {{class}}:{{class}} = /*#__PURE__*/createConstMap<{{class}}>([ + {%- for attribute in attributes if attribute.is_local and not attribute.ref %} + TMP_{{attribute.fqn | to_const_name}}, + {%- endfor %} +]); {%- for attribute in attributes if attribute.is_local and not attribute.ref %} {%- if attribute.is_enum %} {%- set class_name = attribute.fqn | to_camelcase(True) ~ "Values" %} {%- set type = attribute.attr_type.enum_type %} -{% if attribute.attr_type.members is defined and attribute.attr_type.members|length > 0 %} -export const {{class_name}} = { +{%- if attribute.attr_type.members is defined and attribute.attr_type.members|length > 0 %} + +/* ---------------------------------------------------------------------------------------------------------- + * Constant values for {{class_name}} enum definition + * + * {% filter escape %}{{attribute.brief | to_doc_brief}}.{% endfilter %} + {%- if attribute.note %} + * + * Note: {% filter escape %}{{attribute.note | to_doc_brief}}.{% endfilter %} + {%- endif %} + {%- if attribute.deprecated %} + * + * @deprecated {{attribute.deprecated | to_doc_brief}}. + {%- endif %} + * ---------------------------------------------------------------------------------------------------------- */ + +// Temporary local constants to assign to the individual exports and the namespaced version +// Required to avoid the namespace exports using the unminifable export names for some package types +{%- for member in attribute.attr_type.members if attribute.is_local and not attribute.ref %} +const TMP_{{class_name|upper}}_{{ member.member_id | to_const_name }} = {{ print_value(type, member.value) }}; +{%- endfor %} + +{%- for member in attribute.attr_type.members if attribute.is_local and not attribute.ref %} + +/** + * {% filter escape %}{{attribute.brief | to_doc_brief}}.{% endfilter %} + {%- if attribute.note %} + * + * Note: {% filter escape %}{{attribute.note | to_doc_brief}}.{% endfilter %} + {%- endif %} + {%- if attribute.deprecated %} + * + * @deprecated {{attribute.deprecated | to_doc_brief}}. + {%- endif %} + */ +export const {{class_name|upper}}_{{ member.member_id | to_const_name }} = TMP_{{class_name|upper}}_{{ member.member_id | to_const_name }}; + +{%- endfor %} + +/** + * Identifies the Values for {{class_name}} enum definition + * + * {% filter escape %}{{attribute.brief | to_doc_brief}}.{% endfilter %} + {%- if attribute.note %} + * + * Note: {% filter escape %}{{attribute.note | to_doc_brief}}.{% endfilter %} + {%- endif %} + {%- if attribute.deprecated %} + * + * @deprecated {{attribute.deprecated | to_doc_brief}}. Use the {{class_name | upper}}_XXXXX constants rather than the {{class_name}}.XXXXX for bundle minification. + {%- else %} + * @deprecated Use the {{class_name | upper}}_XXXXX constants rather than the {{class_name}}.XXXXX for bundle minification. + {%- endif %} + */ +export type {{class_name}} = { {%- for member in attribute.attr_type.members if attribute.is_local and not attribute.ref %} + /** {% filter escape %}{{member.brief | to_doc_brief}}.{% endfilter %} */ {{ member.member_id | to_const_name }}: {{ print_value(type, member.value) }}, {%- endfor %} -} as const -export type {{class_name}} = typeof {{class_name}}[keyof typeof {{class_name}}] +} + +{%- set enumMap = namespace(useCreateConst = false) %} +{%- if type == "string" %} + {%- set enumMap.useCreateConst = true %} + {%- for member in attribute.attr_type.members if attribute.is_local and not attribute.ref %} + {%- if (member.member_id | to_const_name) != ( member.value | to_const_name) %} + {%- set enumMap.useCreateConst = false %} + {%- endif %} + {%- endfor %} +{%- endif %} + +/** + * The constant map of values for {{class_name}}. + * @deprecated Use the {{class_name | upper}}_XXXXX constants rather than the {{class_name}}.XXXXX for bundle minification. + */ +{%- if enumMap.useCreateConst == true %} +export const {{class_name}}:{{class_name}} = /*#__PURE__*/createConstMap<{{class_name}}>([ +{%- for member in attribute.attr_type.members if attribute.is_local and not attribute.ref %} + {%- if (member.member_id | to_const_name) == ( member.value | to_const_name) %} + TMP_{{class_name|upper}}_{{ member.member_id | to_const_name }}, + {%- else %} + {#- Cause some invalid content to be generated to force a build error #} + !! Invalid mapping for {{class_name}}.{{ member.member_id }}:{{ member.value }}. The value is not a valid string. + {{ member.member_id | to_const_name }}: TMP_{{class_name|upper}}_{{ member.member_id | to_const_name }}, + {%- endif %} +{%- endfor %} +]); +{%- else %} +export const {{class_name}}:{{class_name}} = { +{%- for member in attribute.attr_type.members if attribute.is_local and not attribute.ref %} + {{ member.member_id | to_const_name }}: TMP_{{class_name|upper}}_{{ member.member_id | to_const_name }}, +{%- endfor %} +}; +{%- endif %} {% endif %} {% endif %} From f1b2c6d2123dbbe2d7eab40eaa5eb7434f92e484 Mon Sep 17 00:00:00 2001 From: Yulin Li Date: Wed, 28 Feb 2024 15:29:01 +0800 Subject: [PATCH 03/10] fix a wrong internal link in examples readme (#4512) --- examples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index dcef5e8d8e..d2b71e0b7d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -14,7 +14,7 @@ use the latest and greatest features, and best practices. | [opentelemetry-web](opentelemetry-web/) | Basic use of Tracing and Metrics in a Web application | Beginner | | [http](http/) | HTTP Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | | [https](https/) | HTTPS Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | -| [grpc](grpc/) | gRPC Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | +| [grpc](grpc-js/) | gRPC Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | | [otlp-exporter-node](otlp-exporter-node/) | This example shows how to use `@opentelemetry/exporter-otlp-http` to instrument a simple Node.js application | Intermediate | | [opentracing-shim](opentracing-shim/) | This is a simple example that demonstrates how existing OpenTracing instrumentation can be integrated with OpenTelemetry | Intermediate | | [esm-http-ts](esm-http-ts/) | This is a simple example that demonstrates tracing HTTP request, with an app written in TypeScript and transpiled to ES Modules. | Intermediate | From 05720ccc41c0ae92b16c2a03ed7461ae2ee96499 Mon Sep 17 00:00:00 2001 From: Thomas Burgess Date: Wed, 28 Feb 2024 03:45:45 -0600 Subject: [PATCH 04/10] Fix broken link to getting started page (#4511) Co-authored-by: Marc Pichler --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1877f9e9f3..455327b251 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ process.on('SIGTERM', () => { node -r ./tracing.js app.js ``` -The above example will emit auto-instrumented telemetry about your Node.js application to the console. For a more in-depth example, see the [Getting Started Guide](https://opentelemetry.io/docs/js/getting-started/). For more information about automatic instrumentation see [@opentelemetry/sdk-trace-node][otel-node], which provides auto-instrumentation for Node.js applications. If the automatic instrumentation does not suit your needs, or you would like to create manual traces, see [@opentelemetry/sdk-trace-base][otel-tracing] +The above example will emit auto-instrumented telemetry about your Node.js application to the console. For a more in-depth example, see the [Getting Started Guide](https://opentelemetry.io/docs/languages/js/getting-started/). For more information about automatic instrumentation see [@opentelemetry/sdk-trace-node][otel-node], which provides auto-instrumentation for Node.js applications. If the automatic instrumentation does not suit your needs, or you would like to create manual traces, see [@opentelemetry/sdk-trace-base][otel-tracing] ## Library Author From 7be35c7845e206b27b682e8ce1cee850b09cec04 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Thu, 29 Feb 2024 10:06:15 +0100 Subject: [PATCH 05/10] chore: prepare release API 1.8.0/Core 1.21.0/Experimental 0.49.0 (#4504) * chore: prepare release 1.22.0/0.49.0 * chore: prepare release API 1.8.0 --- CHANGELOG.md | 12 +- api/CHANGELOG.md | 17 + api/package.json | 2 +- examples/esm-http-ts/package.json | 18 +- examples/http/package.json | 18 +- examples/https/package.json | 18 +- examples/opentelemetry-web/package.json | 30 +- examples/otlp-exporter-node/package.json | 24 +- experimental/CHANGELOG.md | 14 +- .../node14/package.json | 6 +- .../node16/package.json | 6 +- experimental/examples/logs/package.json | 6 +- .../examples/opencensus-shim/package.json | 18 +- experimental/examples/prometheus/package.json | 6 +- experimental/packages/api-events/package.json | 2 +- experimental/packages/api-logs/package.json | 2 +- .../exporter-logs-otlp-grpc/package.json | 18 +- .../exporter-logs-otlp-http/package.json | 16 +- .../exporter-logs-otlp-proto/package.json | 20 +- .../exporter-trace-otlp-grpc/package.json | 16 +- .../exporter-trace-otlp-http/package.json | 14 +- .../exporter-trace-otlp-proto/package.json | 16 +- .../package.json | 8 +- .../package.json | 16 +- .../package.json | 14 +- .../package.json | 18 +- .../package.json | 12 +- .../package.json | 18 +- .../package.json | 16 +- .../package.json | 18 +- .../package.json | 18 +- .../package.json | 6 +- .../opentelemetry-sdk-node/package.json | 36 +- .../packages/otlp-exporter-base/package.json | 6 +- .../otlp-grpc-exporter-base/package.json | 14 +- .../otlp-proto-exporter-base/package.json | 8 +- .../packages/otlp-transformer/package.json | 18 +- experimental/packages/sdk-logs/package.json | 12 +- .../packages/shim-opencensus/package.json | 14 +- integration-tests/api/package.json | 2 +- .../package.json | 8 +- package-lock.json | 1246 ++++++++--------- .../package.json | 6 +- .../package.json | 6 +- .../opentelemetry-context-zone/package.json | 4 +- packages/opentelemetry-core/package.json | 8 +- .../package.json | 10 +- .../package.json | 10 +- .../opentelemetry-propagator-b3/package.json | 8 +- .../package.json | 8 +- packages/opentelemetry-resources/package.json | 10 +- .../opentelemetry-sdk-trace-base/package.json | 12 +- .../opentelemetry-sdk-trace-node/package.json | 20 +- .../opentelemetry-sdk-trace-web/package.json | 18 +- .../package.json | 8 +- .../package.json | 16 +- packages/sdk-metrics/package.json | 10 +- packages/template/package.json | 2 +- selenium-tests/package.json | 24 +- 59 files changed, 1011 insertions(+), 976 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8292d5e186..52e776705e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,16 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/ ### :rocket: (Enhancement) +### :bug: (Bug Fix) + +### :books: (Refine Doc) + +### :house: (Internal) + +## 1.22.0 + +### :rocket: (Enhancement) + * feat(sdk-metrics): allow single bucket histograms [#4456](https://github.com/open-telemetry/opentelemetry-js/pull/4456) @pichlermarc * feat(instrumentation): Make `init()` method public [#4418](https://github.com/open-telemetry/opentelemetry-js/pull/4418) * feat(context-zone-peer-dep, context-zone): support zone.js 0.13.x, 0.14.x [#4469](https://github.com/open-telemetry/opentelemetry-js/pull/4469) @pichlermarc @@ -30,8 +40,6 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/ * docs: shorten readme sections [#4460](https://github.com/open-telemetry/opentelemetry-js/pull/4460) @legendecas -### :house: (Internal) - ## 1.21.0 ### :rocket: (Enhancement) diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index 542d9daa38..f33bcbaddf 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -4,7 +4,24 @@ All notable changes to this project will be documented in this file. ## Unreleased +### :boom: Breaking Change + +### :rocket: (Enhancement) + +### :bug: (Bug Fix) + +### :books: (Refine Doc) + +### :house: (Internal) + +## 1.8.0 + +### :rocket: (Enhancement) + * feat(api): add SugaredTracer for functions not defined in the spec + +### :bug: (Bug Fix) + * fix(api): fix unreachable @opentelemetry/api/experimental entry [#4446](https://github.com/open-telemetry/opentelemetry-js/pull/4446) @legendecas ## 1.7.0 diff --git a/api/package.json b/api/package.json index 140365100f..39ee9b075c 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/api", - "version": "1.7.0", + "version": "1.8.0", "description": "Public API for OpenTelemetry", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/examples/esm-http-ts/package.json b/examples/esm-http-ts/package.json index 5200e5207b..012e4937bc 100644 --- a/examples/esm-http-ts/package.json +++ b/examples/esm-http-ts/package.json @@ -1,7 +1,7 @@ { "name": "esm-http-ts", "private": true, - "version": "0.48.0", + "version": "0.49.0", "description": "Example of HTTP integration with OpenTelemetry using ESM and TypeScript", "main": "build/index.js", "type": "module", @@ -30,13 +30,13 @@ }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/", "dependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/api": "1.8.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" } } diff --git a/examples/http/package.json b/examples/http/package.json index 8e269ba879..5837942835 100644 --- a/examples/http/package.json +++ b/examples/http/package.json @@ -1,7 +1,7 @@ { "name": "http-example", "private": true, - "version": "0.48.0", + "version": "0.49.0", "description": "Example of HTTP integration with OpenTelemetry", "main": "index.js", "scripts": { @@ -29,14 +29,14 @@ }, "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/http", "devDependencies": { diff --git a/examples/https/package.json b/examples/https/package.json index e47b2159c9..08a48aca8d 100644 --- a/examples/https/package.json +++ b/examples/https/package.json @@ -1,7 +1,7 @@ { "name": "https-example", "private": true, - "version": "0.48.0", + "version": "0.49.0", "description": "Example of HTTPs integration with OpenTelemetry", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -33,14 +33,14 @@ }, "dependencies": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/https", "devDependencies": { diff --git a/examples/opentelemetry-web/package.json b/examples/opentelemetry-web/package.json index 395c68e1e3..d90b7e66cd 100644 --- a/examples/opentelemetry-web/package.json +++ b/examples/opentelemetry-web/package.json @@ -1,7 +1,7 @@ { "name": "web-opentelemetry-example", "private": true, - "version": "0.48.0", + "version": "0.49.0", "description": "Example of using @opentelemetry/sdk-trace-web and @opentelemetry/sdk-metrics in browser", "main": "index.js", "scripts": { @@ -44,20 +44,20 @@ }, "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-fetch": "0.48.0", - "@opentelemetry/instrumentation-xml-http-request": "0.48.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-fetch": "0.49.0", + "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/tracer-web" } diff --git a/examples/otlp-exporter-node/package.json b/examples/otlp-exporter-node/package.json index 6b2580abed..b9f8feb53e 100644 --- a/examples/otlp-exporter-node/package.json +++ b/examples/otlp-exporter-node/package.json @@ -1,7 +1,7 @@ { "name": "example-otlp-exporter-node", "private": true, - "version": "0.48.0", + "version": "0.49.0", "description": "Example of using @opentelemetry/collector-exporter in Node.js", "main": "index.js", "scripts": { @@ -29,17 +29,17 @@ }, "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/exporter-metrics-otlp-proto": "0.48.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-proto": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/otlp-exporter-node" } diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 000ef35e3b..dc1e23dc10 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -6,6 +6,18 @@ All notable changes to experimental packages in this project will be documented ### :boom: Breaking Change +### :rocket: (Enhancement) + +### :bug: (Bug Fix) + +### :books: (Refine Doc) + +### :house: (Internal) + +## 0.49.0 + +### :boom: Breaking Change + * fix(otlp-exporter-base)!: remove unload event from OTLPExporterBrowserBase [#4438](https://github.com/open-telemetry/opentelemetry-js/pull/4438) @eldavojohn * Reason: The 'unload' event prevents sites from taking advantage of Google's [backward/forward cache](https://web.dev/articles/bfcache#never_use_the_unload_event) and will be [deprecated](https://developer.chrome.com/articles/deprecating-unload/). It is now up to the consuming site to implement these shutdown events. * This breaking change affects users under this scenario: @@ -28,8 +40,6 @@ All notable changes to experimental packages in this project will be documented * fix(otlp-transformer): only use BigInt inside hrTimeToNanos() [#4484](https://github.com/open-telemetry/opentelemetry-js/pull/4484) @pichlermarc * fix(instrumentation-fetch): do not enable in Node.js; clarify in docs this instr is for web fetch only [#4498](https://github.com/open-telemetry/opentelemetry-js/pull/4498) @trentm -### :books: (Refine Doc) - ### :house: (Internal) * refactor(instrumentation-grpc): clean up remnants of 'grpc' package instrumentation [#4420](https://github.com/open-telemetry/opentelemetry-js/pull/4420) @pichlermarc diff --git a/experimental/backwards-compatibility/node14/package.json b/experimental/backwards-compatibility/node14/package.json index a9c5aeda53..cd669cbf16 100644 --- a/experimental/backwards-compatibility/node14/package.json +++ b/experimental/backwards-compatibility/node14/package.json @@ -1,6 +1,6 @@ { "name": "backcompat-node14", - "version": "0.48.0", + "version": "0.49.0", "private": true, "description": "Backwards compatibility app for node 14 types and the OpenTelemetry Node.js SDK", "main": "index.js", @@ -9,8 +9,8 @@ "peer-api-check": "node ../../../scripts/peer-api-check.js" }, "dependencies": { - "@opentelemetry/sdk-node": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@types/node": "14.18.25", diff --git a/experimental/backwards-compatibility/node16/package.json b/experimental/backwards-compatibility/node16/package.json index af35af7d6f..b0a3f234be 100644 --- a/experimental/backwards-compatibility/node16/package.json +++ b/experimental/backwards-compatibility/node16/package.json @@ -1,6 +1,6 @@ { "name": "backcompat-node16", - "version": "0.48.0", + "version": "0.49.0", "private": true, "description": "Backwards compatibility app for node 16 types and the OpenTelemetry Node.js SDK", "main": "index.js", @@ -9,8 +9,8 @@ "peer-api-check": "node ../../../scripts/peer-api-check.js" }, "dependencies": { - "@opentelemetry/sdk-node": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@types/node": "16.11.52", diff --git a/experimental/examples/logs/package.json b/experimental/examples/logs/package.json index 7fbb42d173..91385afe0e 100644 --- a/experimental/examples/logs/package.json +++ b/experimental/examples/logs/package.json @@ -1,14 +1,14 @@ { "name": "logs-example", - "version": "0.48.0", + "version": "0.49.0", "private": true, "scripts": { "start": "ts-node index.ts" }, "dependencies": { "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0" }, "devDependencies": { "@types/node": "18.6.5", diff --git a/experimental/examples/opencensus-shim/package.json b/experimental/examples/opencensus-shim/package.json index 92990a8ce7..2755c7cbc7 100644 --- a/experimental/examples/opencensus-shim/package.json +++ b/experimental/examples/opencensus-shim/package.json @@ -1,7 +1,7 @@ { "name": "opencensus-shim", "private": true, - "version": "0.48.0", + "version": "0.49.0", "description": "Example of using @opentelemetry/shim-opencensus in Node.js", "main": "index.js", "scripts": { @@ -30,14 +30,14 @@ "@opencensus/core": "0.1.0", "@opencensus/instrumentation-http": "0.1.0", "@opencensus/nodejs-base": "0.1.0", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/exporter-prometheus": "0.48.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", - "@opentelemetry/shim-opencensus": "0.48.0" + "@opentelemetry/api": "1.8.0", + "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", + "@opentelemetry/shim-opencensus": "0.49.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/examples/opencensus-shim" } diff --git a/experimental/examples/prometheus/package.json b/experimental/examples/prometheus/package.json index c6f5c171ed..af2b980df7 100644 --- a/experimental/examples/prometheus/package.json +++ b/experimental/examples/prometheus/package.json @@ -1,6 +1,6 @@ { "name": "prometheus-example", - "version": "0.48.0", + "version": "0.49.0", "private": true, "description": "Example of using @opentelemetry/sdk-metrics and @opentelemetry/exporter-prometheus", "main": "index.js", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-prometheus": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0" } } diff --git a/experimental/packages/api-events/package.json b/experimental/packages/api-events/package.json index 764ee61d57..9dce03ae16 100644 --- a/experimental/packages/api-events/package.json +++ b/experimental/packages/api-events/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/api-events", - "version": "0.48.0", + "version": "0.49.0", "description": "Public events API for OpenTelemetry", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/experimental/packages/api-logs/package.json b/experimental/packages/api-logs/package.json index 617d6774c8..afe07aef5f 100644 --- a/experimental/packages/api-logs/package.json +++ b/experimental/packages/api-logs/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/api-logs", - "version": "0.48.0", + "version": "0.49.0", "description": "Public logs API for OpenTelemetry", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/experimental/packages/exporter-logs-otlp-grpc/package.json b/experimental/packages/exporter-logs-otlp-grpc/package.json index aa548298f9..9f099bbeba 100644 --- a/experimental/packages/exporter-logs-otlp-grpc/package.json +++ b/experimental/packages/exporter-logs-otlp-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-logs-otlp-grpc", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Exporter allows user to send collected log records to the OpenTelemetry Collector", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -49,10 +49,10 @@ }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -72,10 +72,10 @@ }, "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-logs-otlp-grpc", "sideEffects": false diff --git a/experimental/packages/exporter-logs-otlp-http/package.json b/experimental/packages/exporter-logs-otlp-http/package.json index a268a0f161..36f4479b0d 100644 --- a/experimental/packages/exporter-logs-otlp-http/package.json +++ b/experimental/packages/exporter-logs-otlp-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-logs-otlp-http", - "version": "0.48.0", + "version": "0.49.0", "publishConfig": { "access": "public" }, @@ -73,8 +73,8 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -105,10 +105,10 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0" } } diff --git a/experimental/packages/exporter-logs-otlp-proto/package.json b/experimental/packages/exporter-logs-otlp-proto/package.json index 361a6ac3fc..8f63d2fc7e 100644 --- a/experimental/packages/exporter-logs-otlp-proto/package.json +++ b/experimental/packages/exporter-logs-otlp-proto/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-logs-otlp-proto", - "version": "0.48.0", + "version": "0.49.0", "description": "An OTLP exporter to send logs using protobuf over HTTP", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -65,7 +65,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -94,14 +94,14 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-logs-otlp-proto", "sideEffects": false diff --git a/experimental/packages/exporter-trace-otlp-grpc/package.json b/experimental/packages/exporter-trace-otlp-grpc/package.json index 1f6deb4081..35e6f307c0 100644 --- a/experimental/packages/exporter-trace-otlp-grpc/package.json +++ b/experimental/packages/exporter-trace-otlp-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-trace-otlp-grpc", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -48,8 +48,8 @@ }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -69,11 +69,11 @@ }, "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-grpc", "sideEffects": false diff --git a/experimental/packages/exporter-trace-otlp-http/package.json b/experimental/packages/exporter-trace-otlp-http/package.json index a06869791a..87a4b6c95e 100644 --- a/experimental/packages/exporter-trace-otlp-http/package.json +++ b/experimental/packages/exporter-trace-otlp-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-trace-otlp-http", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Trace Exporter allows user to send collected traces to the OpenTelemetry Collector", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -65,7 +65,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -96,11 +96,11 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-http", "sideEffects": false diff --git a/experimental/packages/exporter-trace-otlp-proto/package.json b/experimental/packages/exporter-trace-otlp-proto/package.json index dff818873e..51a98e9ca3 100644 --- a/experimental/packages/exporter-trace-otlp-proto/package.json +++ b/experimental/packages/exporter-trace-otlp-proto/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-trace-otlp-proto", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector using protobuf over HTTP", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -64,7 +64,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -93,12 +93,12 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-proto", "sideEffects": false diff --git a/experimental/packages/opentelemetry-browser-detector/package.json b/experimental/packages/opentelemetry-browser-detector/package.json index 993653992c..6ccb2d9b7e 100644 --- a/experimental/packages/opentelemetry-browser-detector/package.json +++ b/experimental/packages/opentelemetry-browser-detector/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/opentelemetry-browser-detector", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Resource Detector for Browser", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -55,7 +55,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -83,8 +83,8 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/browser-detector" } diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json index 0536164f73..18096b1cc8 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-metrics-otlp-grpc", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -48,7 +48,7 @@ }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -68,12 +68,12 @@ }, "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc", "sideEffects": false diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json index f984373a27..27b1d0612c 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-metrics-otlp-http", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -65,7 +65,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -96,11 +96,11 @@ "@opentelemetry/api": "^1.3.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-http", "sideEffects": false diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json index c28adedf61..141c7fc3e9 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-metrics-otlp-proto", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector using protobuf over HTTP", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -55,7 +55,7 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -74,13 +74,13 @@ "@opentelemetry/api": "^1.3.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-proto", "sideEffects": false diff --git a/experimental/packages/opentelemetry-exporter-prometheus/package.json b/experimental/packages/opentelemetry-exporter-prometheus/package.json index be424e06d6..3c6e1cfebf 100644 --- a/experimental/packages/opentelemetry-exporter-prometheus/package.json +++ b/experimental/packages/opentelemetry-exporter-prometheus/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-prometheus", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -43,8 +43,8 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -61,9 +61,9 @@ "@opentelemetry/api": "^1.3.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-prometheus", "sideEffects": false diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/package.json b/experimental/packages/opentelemetry-instrumentation-fetch/package.json index f3fb9b1bb1..3d85f794f5 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/package.json +++ b/experimental/packages/opentelemetry-instrumentation-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-fetch", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry fetch automatic instrumentation package.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -56,10 +56,10 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -89,10 +89,10 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-fetch", "sideEffects": false diff --git a/experimental/packages/opentelemetry-instrumentation-grpc/package.json b/experimental/packages/opentelemetry-instrumentation-grpc/package.json index c1389db8dc..e8142fcb39 100644 --- a/experimental/packages/opentelemetry-instrumentation-grpc/package.json +++ b/experimental/packages/opentelemetry-instrumentation-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-grpc", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry grpc automatic instrumentation package.", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -49,11 +49,11 @@ "@bufbuild/buf": "1.21.0-1", "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", "@protobuf-ts/grpc-transport": "2.9.3", "@protobuf-ts/runtime": "2.9.3", "@protobuf-ts/runtime-rpc": "2.9.3", @@ -75,8 +75,8 @@ "@opentelemetry/api": "^1.3.0" }, "dependencies": { - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-grpc", "sideEffects": false diff --git a/experimental/packages/opentelemetry-instrumentation-http/package.json b/experimental/packages/opentelemetry-instrumentation-http/package.json index 453402848c..f6c816c8c6 100644 --- a/experimental/packages/opentelemetry-instrumentation-http/package.json +++ b/experimental/packages/opentelemetry-instrumentation-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-http", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry http/https automatic instrumentation package.", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -45,11 +45,11 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/request-promise-native": "1.0.21", @@ -74,9 +74,9 @@ "@opentelemetry/api": "^1.3.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/semantic-conventions": "1.22.0", "semver": "^7.5.2" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http", diff --git a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json index 8cf9c767fa..9ee992c261 100644 --- a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json +++ b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-xml-http-request", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry XMLHttpRequest automatic instrumentation package.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -56,10 +56,10 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -89,10 +89,10 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-xml-http-request", "sideEffects": false diff --git a/experimental/packages/opentelemetry-instrumentation/package.json b/experimental/packages/opentelemetry-instrumentation/package.json index 4573b37616..4dba2101b7 100644 --- a/experimental/packages/opentelemetry-instrumentation/package.json +++ b/experimental/packages/opentelemetry-instrumentation/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation", - "version": "0.48.0", + "version": "0.49.0", "description": "Base class for node which OpenTelemetry instrumentation modules extend", "author": "OpenTelemetry Authors", "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation", @@ -84,9 +84,9 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@opentelemetry/api-logs": "0.47.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", diff --git a/experimental/packages/opentelemetry-sdk-node/package.json b/experimental/packages/opentelemetry-sdk-node/package.json index b43ed80856..d30d97f2e3 100644 --- a/experimental/packages/opentelemetry-sdk-node/package.json +++ b/experimental/packages/opentelemetry-sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-node", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry SDK for Node.js", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -44,27 +44,27 @@ "access": "public" }, "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.8.0" + "@opentelemetry/api": ">=1.3.0 <1.9.0" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/exporter-jaeger": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/exporter-jaeger": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", diff --git a/experimental/packages/otlp-exporter-base/package.json b/experimental/packages/otlp-exporter-base/package.json index ce41ac2f0f..c6e6c95957 100644 --- a/experimental/packages/otlp-exporter-base/package.json +++ b/experimental/packages/otlp-exporter-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/otlp-exporter-base", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry OTLP Exporter base (for internal use only)", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -61,12 +61,12 @@ "access": "public" }, "dependencies": { - "@opentelemetry/core": "1.21.0" + "@opentelemetry/core": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", diff --git a/experimental/packages/otlp-grpc-exporter-base/package.json b/experimental/packages/otlp-grpc-exporter-base/package.json index fa6817be25..4ffc99d8b7 100644 --- a/experimental/packages/otlp-grpc-exporter-base/package.json +++ b/experimental/packages/otlp-grpc-exporter-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/otlp-grpc-exporter-base", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry OTLP-gRPC Exporter base (for internal use only)", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -48,10 +48,10 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -72,8 +72,8 @@ }, "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "protobufjs": "^7.2.3" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-grpc-exporter-base", diff --git a/experimental/packages/otlp-proto-exporter-base/package.json b/experimental/packages/otlp-proto-exporter-base/package.json index e62916bdef..56bbaf8ce1 100644 --- a/experimental/packages/otlp-proto-exporter-base/package.json +++ b/experimental/packages/otlp-proto-exporter-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/otlp-proto-exporter-base", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenTelemetry OTLP-HTTP-protobuf Exporter base (for internal use only)", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -61,7 +61,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -80,8 +80,8 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "protobufjs": "^7.2.3" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-proto-exporter-base", diff --git a/experimental/packages/otlp-transformer/package.json b/experimental/packages/otlp-transformer/package.json index a6bed9f5dc..1baa27525d 100644 --- a/experimental/packages/otlp-transformer/package.json +++ b/experimental/packages/otlp-transformer/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "0.48.0", + "version": "0.49.0", "description": "Transform OpenTelemetry SDK data into OTLP", "module": "build/esm/index.js", "esnext": "build/esnext/index.js", @@ -55,10 +55,10 @@ "README.md" ], "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.8.0" + "@opentelemetry/api": ">=1.3.0 <1.9.0" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/webpack-env": "1.16.3", "babel-plugin-istanbul": "6.1.1", @@ -79,12 +79,12 @@ "webpack": "5.89.0" }, "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-transformer", "sideEffects": false diff --git a/experimental/packages/sdk-logs/package.json b/experimental/packages/sdk-logs/package.json index 84afa8b529..f767eb61b6 100644 --- a/experimental/packages/sdk-logs/package.json +++ b/experimental/packages/sdk-logs/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-logs", - "version": "0.48.0", + "version": "0.49.0", "publishConfig": { "access": "public" }, @@ -68,14 +68,14 @@ ], "sideEffects": false, "peerDependencies": { - "@opentelemetry/api": ">=1.4.0 <1.8.0", + "@opentelemetry/api": ">=1.4.0 <1.9.0", "@opentelemetry/api-logs": ">=0.39.1" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.4.0 <1.8.0", - "@opentelemetry/api-logs": "0.48.0", + "@opentelemetry/api": ">=1.4.0 <1.9.0", + "@opentelemetry/api-logs": "0.49.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -101,7 +101,7 @@ "webpack-merge": "5.10.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0" } } diff --git a/experimental/packages/shim-opencensus/package.json b/experimental/packages/shim-opencensus/package.json index cebefa1b54..711a64b6e8 100644 --- a/experimental/packages/shim-opencensus/package.json +++ b/experimental/packages/shim-opencensus/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/shim-opencensus", - "version": "0.48.0", + "version": "0.49.0", "description": "OpenCensus to OpenTelemetry shim", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -49,9 +49,9 @@ }, "devDependencies": { "@opencensus/core": "0.1.0", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -69,9 +69,9 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", "require-in-the-middle": "^7.1.1", "semver": "^7.5.2" }, diff --git a/integration-tests/api/package.json b/integration-tests/api/package.json index 5a0b745d7b..7caa2417e8 100644 --- a/integration-tests/api/package.json +++ b/integration-tests/api/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/integration-tests-api", - "version": "1.21.0", + "version": "1.22.0", "private": true, "publishConfig": { "access": "restricted" diff --git a/integration-tests/propagation-validation-server/package.json b/integration-tests/propagation-validation-server/package.json index 954a00eb7b..837e567dfb 100644 --- a/integration-tests/propagation-validation-server/package.json +++ b/integration-tests/propagation-validation-server/package.json @@ -1,6 +1,6 @@ { "name": "propagation-validation-server", - "version": "1.22.0", + "version": "1.23.0", "description": "server for w3c tests", "main": "validation_server.js", "private": true, @@ -12,9 +12,9 @@ }, "dependencies": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "axios": "1.5.1", "body-parser": "1.19.0", "express": "4.17.3" diff --git a/package-lock.json b/package-lock.json index 44dc92b09b..b7a1ceceef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53,7 +53,7 @@ }, "api": { "name": "@opentelemetry/api", - "version": "1.7.0", + "version": "1.8.0", "license": "Apache-2.0", "devDependencies": { "@types/mocha": "10.0.6", @@ -195,17 +195,17 @@ } }, "examples/esm-http-ts": { - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/api": "1.8.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "engines": { "node": ">=14" @@ -213,18 +213,18 @@ }, "examples/http": { "name": "http-example", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "cross-env": "^6.0.0" @@ -235,18 +235,18 @@ }, "examples/https": { "name": "https-example", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "cross-env": "^6.0.0" @@ -257,24 +257,24 @@ }, "examples/opentelemetry-web": { "name": "web-opentelemetry-example", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-fetch": "0.48.0", - "@opentelemetry/instrumentation-xml-http-request": "0.48.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-fetch": "0.49.0", + "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@babel/core": "^7.23.6", @@ -609,21 +609,21 @@ }, "examples/otlp-exporter-node": { "name": "example-otlp-exporter-node", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/exporter-metrics-otlp-proto": "0.48.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-proto": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "engines": { "node": ">=14" @@ -631,11 +631,11 @@ }, "experimental/backwards-compatibility/node14": { "name": "backcompat-node14", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/sdk-node": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@types/node": "14.18.25", @@ -652,11 +652,11 @@ }, "experimental/backwards-compatibility/node16": { "name": "backcompat-node16", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/sdk-node": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@types/node": "16.11.52", @@ -673,11 +673,11 @@ }, "experimental/examples/logs": { "name": "logs-example", - "version": "0.48.0", + "version": "0.49.0", "dependencies": { "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0" }, "devDependencies": { "@types/node": "18.6.5", @@ -743,20 +743,20 @@ } }, "experimental/examples/opencensus-shim": { - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opencensus/core": "0.1.0", "@opencensus/instrumentation-http": "0.1.0", "@opencensus/nodejs-base": "0.1.0", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/exporter-prometheus": "0.48.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", - "@opentelemetry/shim-opencensus": "0.48.0" + "@opentelemetry/api": "1.8.0", + "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", + "@opentelemetry/shim-opencensus": "0.49.0" }, "engines": { "node": ">=14" @@ -764,17 +764,17 @@ }, "experimental/examples/prometheus": { "name": "prometheus-example", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-prometheus": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0" } }, "experimental/packages/api-events": { "name": "@opentelemetry/api-events", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0" @@ -913,7 +913,7 @@ }, "experimental/packages/api-logs": { "name": "@opentelemetry/api-logs", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0" @@ -1052,21 +1052,21 @@ }, "experimental/packages/exporter-logs-otlp-grpc": { "name": "@opentelemetry/exporter-logs-otlp-grpc", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0" }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -1090,20 +1090,20 @@ }, "experimental/packages/exporter-logs-otlp-http": { "name": "@opentelemetry/exporter-logs-otlp-http", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -1404,22 +1404,22 @@ }, "experimental/packages/exporter-logs-otlp-proto": { "name": "@opentelemetry/exporter-logs-otlp-proto", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -1718,20 +1718,20 @@ }, "experimental/packages/exporter-trace-otlp-grpc": { "name": "@opentelemetry/exporter-trace-otlp-grpc", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -1755,19 +1755,19 @@ }, "experimental/packages/exporter-trace-otlp-http": { "name": "@opentelemetry/exporter-trace-otlp-http", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -2068,20 +2068,20 @@ }, "experimental/packages/exporter-trace-otlp-proto": { "name": "@opentelemetry/exporter-trace-otlp-proto", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -2380,16 +2380,16 @@ }, "experimental/packages/opentelemetry-browser-detector": { "name": "@opentelemetry/opentelemetry-browser-detector", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -2687,20 +2687,20 @@ }, "experimental/packages/opentelemetry-exporter-metrics-otlp-grpc": { "name": "@opentelemetry/exporter-metrics-otlp-grpc", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -2724,19 +2724,19 @@ }, "experimental/packages/opentelemetry-exporter-metrics-otlp-http": { "name": "@opentelemetry/exporter-metrics-otlp-http", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -3037,19 +3037,19 @@ }, "experimental/packages/opentelemetry-exporter-metrics-otlp-proto": { "name": "@opentelemetry/exporter-metrics-otlp-proto", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -3073,16 +3073,16 @@ }, "experimental/packages/opentelemetry-exporter-prometheus": { "name": "@opentelemetry/exporter-prometheus", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -3104,7 +3104,7 @@ }, "experimental/packages/opentelemetry-instrumentation": { "name": "@opentelemetry/instrumentation", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@types/shimmer": "^1.0.2", @@ -3116,9 +3116,9 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@opentelemetry/api-logs": "0.47.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -3156,21 +3156,21 @@ }, "experimental/packages/opentelemetry-instrumentation-fetch": { "name": "@opentelemetry/instrumentation-fetch", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -3470,21 +3470,21 @@ }, "experimental/packages/opentelemetry-instrumentation-grpc": { "name": "@opentelemetry/instrumentation-grpc", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@bufbuild/buf": "1.21.0-1", "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", "@protobuf-ts/grpc-transport": "2.9.3", "@protobuf-ts/runtime": "2.9.3", "@protobuf-ts/runtime-rpc": "2.9.3", @@ -3511,20 +3511,20 @@ }, "experimental/packages/opentelemetry-instrumentation-http": { "name": "@opentelemetry/instrumentation-http", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/semantic-conventions": "1.22.0", "semver": "^7.5.2" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/request-promise-native": "1.0.21", @@ -3564,21 +3564,21 @@ }, "experimental/packages/opentelemetry-instrumentation-xml-http-request": { "name": "@opentelemetry/instrumentation-xml-http-request", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -4166,27 +4166,27 @@ }, "experimental/packages/opentelemetry-sdk-node": { "name": "@opentelemetry/sdk-node", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/exporter-jaeger": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/exporter-jaeger": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -4206,20 +4206,20 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.8.0" + "@opentelemetry/api": ">=1.3.0 <1.9.0" } }, "experimental/packages/otlp-exporter-base": { "name": "@opentelemetry/otlp-exporter-base", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0" + "@opentelemetry/core": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -4517,19 +4517,19 @@ }, "experimental/packages/otlp-grpc-exporter-base": { "name": "@opentelemetry/otlp-grpc-exporter-base", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "protobufjs": "^7.2.3" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -4554,17 +4554,17 @@ }, "experimental/packages/otlp-proto-exporter-base": { "name": "@opentelemetry/otlp-proto-exporter-base", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "protobufjs": "^7.2.3" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -4588,18 +4588,18 @@ }, "experimental/packages/otlp-transformer": { "name": "@opentelemetry/otlp-transformer", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0" + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@types/mocha": "10.0.6", "@types/webpack-env": "1.16.3", "babel-plugin-istanbul": "6.1.1", @@ -4623,7 +4623,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.8.0" + "@opentelemetry/api": ">=1.3.0 <1.9.0" } }, "experimental/packages/otlp-transformer/node_modules/enhanced-resolve": { @@ -4735,17 +4735,17 @@ }, "experimental/packages/sdk-logs": { "name": "@opentelemetry/sdk-logs", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.4.0 <1.8.0", - "@opentelemetry/api-logs": "0.48.0", + "@opentelemetry/api": ">=1.4.0 <1.9.0", + "@opentelemetry/api-logs": "0.49.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -4774,7 +4774,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.4.0 <1.8.0", + "@opentelemetry/api": ">=1.4.0 <1.9.0", "@opentelemetry/api-logs": ">=0.39.1" } }, @@ -5095,20 +5095,20 @@ }, "experimental/packages/shim-opencensus": { "name": "@opentelemetry/shim-opencensus", - "version": "0.48.0", + "version": "0.49.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", "require-in-the-middle": "^7.1.1", "semver": "^7.5.2" }, "devDependencies": { "@opencensus/core": "0.1.0", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -5131,7 +5131,7 @@ }, "integration-tests/api": { "name": "@opentelemetry/integration-tests-api", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { "@opentelemetry/api": "^1.0.0", @@ -5458,13 +5458,13 @@ } }, "integration-tests/propagation-validation-server": { - "version": "1.22.0", + "version": "1.23.0", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "axios": "1.5.1", "body-parser": "1.19.0", "express": "4.17.3" @@ -34260,10 +34260,10 @@ }, "packages/opentelemetry-context-async-hooks": { "name": "@opentelemetry/context-async-hooks", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -34278,15 +34278,15 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-context-zone": { "name": "@opentelemetry/context-zone", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/context-zone-peer-dep": "1.21.0", + "@opentelemetry/context-zone-peer-dep": "1.22.0", "zone.js": "^0.11.0 || ^0.13.0 || ^0.14.0" }, "devDependencies": { @@ -34300,12 +34300,12 @@ }, "packages/opentelemetry-context-zone-peer-dep": { "name": "@opentelemetry/context-zone-peer-dep", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -34336,7 +34336,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "zone.js": "^0.10.2 || ^0.11.0 || ^0.13.0 || ^0.14.0" } }, @@ -34616,13 +34616,13 @@ }, "packages/opentelemetry-core": { "name": "@opentelemetry/core", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -34649,7 +34649,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-core/node_modules/enhanced-resolve": { @@ -34761,17 +34761,17 @@ }, "packages/opentelemetry-exporter-jaeger": { "name": "@opentelemetry/exporter-jaeger", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "jaeger-client": "^3.15.0" }, "devDependencies": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -34794,13 +34794,13 @@ }, "packages/opentelemetry-exporter-zipkin": { "name": "@opentelemetry/exporter-zipkin", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", @@ -35106,13 +35106,13 @@ }, "packages/opentelemetry-propagator-b3": { "name": "@opentelemetry/propagator-b3", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0" + "@opentelemetry/core": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -35128,18 +35128,18 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-propagator-jaeger": { "name": "@opentelemetry/propagator-jaeger", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0" + "@opentelemetry/core": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -35166,7 +35166,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-propagator-jaeger/node_modules/enhanced-resolve": { @@ -35278,14 +35278,14 @@ }, "packages/opentelemetry-resources": { "name": "@opentelemetry/resources", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -35315,7 +35315,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-resources/node_modules/@opentelemetry/resources_1.9.0": { @@ -35623,15 +35623,15 @@ }, "packages/opentelemetry-sdk-trace-base": { "name": "@opentelemetry/sdk-trace-base", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -35659,7 +35659,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-sdk-trace-base/node_modules/enhanced-resolve": { @@ -35771,20 +35771,20 @@ }, "packages/opentelemetry-sdk-trace-node": { "name": "@opentelemetry/sdk-trace-node", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/propagator-jaeger": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/propagator-jaeger": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "semver": "^7.5.2" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -35802,25 +35802,25 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-sdk-trace-web": { "name": "@opentelemetry/sdk-trace-web", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/resources": "1.22.0", "@types/jquery": "3.5.29", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -35853,7 +35853,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/opentelemetry-sdk-trace-web/node_modules/@webpack-cli/configtest": { @@ -36123,7 +36123,7 @@ }, "packages/opentelemetry-semantic-conventions": { "name": "@opentelemetry/semantic-conventions", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { "@size-limit/file": "^11.0.1", @@ -36211,18 +36211,18 @@ }, "packages/opentelemetry-shim-opentracing": { "name": "@opentelemetry/shim-opentracing", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "opentracing": "^0.14.4" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/propagator-jaeger": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/propagator-jaeger": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -36237,22 +36237,22 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" } }, "packages/sdk-metrics": { "name": "@opentelemetry/sdk-metrics", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", "lodash.merge": "^4.6.2" }, "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.3.0 <1.8.0", + "@opentelemetry/api": ">=1.3.0 <1.9.0", "@types/lodash.merge": "4.6.9", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -36281,7 +36281,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.8.0" + "@opentelemetry/api": ">=1.3.0 <1.9.0" } }, "packages/sdk-metrics/node_modules/@webpack-cli/configtest": { @@ -36551,7 +36551,7 @@ }, "packages/template": { "name": "@opentelemetry/template", - "version": "1.21.0", + "version": "1.22.0", "license": "Apache-2.0", "devDependencies": { "@types/node": "18.6.5", @@ -36565,19 +36565,19 @@ }, "selenium-tests": { "name": "@opentelemetry/selenium-tests", - "version": "1.22.0", + "version": "1.23.0", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/context-zone-peer-dep": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-fetch": "0.48.0", - "@opentelemetry/instrumentation-xml-http-request": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", + "@opentelemetry/context-zone-peer-dep": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-fetch": "0.49.0", + "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", "zone.js": "^0.11.0 || ^0.13.0 || ^0.14.0" }, "devDependencies": { @@ -36586,7 +36586,7 @@ "@babel/plugin-proposal-decorators": "7.22.15", "@babel/plugin-transform-runtime": "7.22.15", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "babel-loader": "8.3.0", "babel-polyfill": "6.26.0", "browserstack-local": "1.4.8", @@ -40224,7 +40224,7 @@ "@opentelemetry/context-async-hooks": { "version": "file:packages/opentelemetry-context-async-hooks", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -40239,7 +40239,7 @@ "@opentelemetry/context-zone": { "version": "file:packages/opentelemetry-context-zone", "requires": { - "@opentelemetry/context-zone-peer-dep": "1.21.0", + "@opentelemetry/context-zone-peer-dep": "1.22.0", "cross-var": "1.1.0", "lerna": "6.6.2", "typescript": "4.4.4", @@ -40251,7 +40251,7 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40426,8 +40426,8 @@ "@opentelemetry/core": { "version": "file:packages/opentelemetry-core", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40514,10 +40514,10 @@ "version": "file:packages/opentelemetry-exporter-jaeger", "requires": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40538,14 +40538,14 @@ "requires": { "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40566,13 +40566,13 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40740,15 +40740,15 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40914,13 +40914,13 @@ "requires": { "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40941,12 +40941,12 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41112,14 +41112,14 @@ "@opentelemetry/exporter-metrics-otlp-proto": { "version": "file:experimental/packages/opentelemetry-exporter-metrics-otlp-proto", "requires": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41138,11 +41138,11 @@ "@opentelemetry/exporter-prometheus": { "version": "file:experimental/packages/opentelemetry-exporter-prometheus", "requires": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41161,13 +41161,13 @@ "requires": { "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41188,12 +41188,12 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41361,13 +41361,13 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-proto-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-proto-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41534,10 +41534,10 @@ "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", "@opentelemetry/api": "^1.0.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -41705,9 +41705,9 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "@opentelemetry/api-logs": "0.47.0", - "@opentelemetry/sdk-metrics": "1.21.0", + "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -41901,14 +41901,14 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42076,13 +42076,13 @@ "@bufbuild/buf": "1.21.0-1", "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@protobuf-ts/grpc-transport": "2.9.3", "@protobuf-ts/runtime": "2.9.3", "@protobuf-ts/runtime-rpc": "2.9.3", @@ -42104,14 +42104,14 @@ "@opentelemetry/instrumentation-http": { "version": "file:experimental/packages/opentelemetry-instrumentation-http", "requires": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/request-promise-native": "1.0.21", @@ -42150,14 +42150,14 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42562,9 +42562,9 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42729,8 +42729,8 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42894,12 +42894,12 @@ "version": "file:experimental/packages/otlp-grpc-exporter-base", "requires": { "@grpc/grpc-js": "^1.7.1", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", - "@opentelemetry/otlp-transformer": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42922,9 +42922,9 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/otlp-exporter-base": "0.48.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/otlp-exporter-base": "0.49.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42944,13 +42944,13 @@ "@opentelemetry/otlp-transformer": { "version": "file:experimental/packages/otlp-transformer", "requires": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/webpack-env": "1.16.3", "babel-plugin-istanbul": "6.1.1", @@ -43033,8 +43033,8 @@ "@opentelemetry/propagator-b3": { "version": "file:packages/opentelemetry-propagator-b3", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/core": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/core": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -43050,8 +43050,8 @@ "@opentelemetry/propagator-jaeger": { "version": "file:packages/opentelemetry-propagator-jaeger", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/core": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/core": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -43137,10 +43137,10 @@ "@opentelemetry/resources": { "version": "file:packages/opentelemetry-resources", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/core": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/core": "1.22.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -43327,10 +43327,10 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.4.0 <1.8.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": ">=1.4.0 <1.9.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -43529,9 +43529,9 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.3.0 <1.8.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": ">=1.3.0 <1.9.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", "@types/lodash.merge": "4.6.9", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -43696,22 +43696,22 @@ "@opentelemetry/sdk-node": { "version": "file:experimental/packages/opentelemetry-sdk-node", "requires": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-logs": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -43731,10 +43731,10 @@ "@opentelemetry/sdk-trace-base": { "version": "file:packages/opentelemetry-sdk-trace-base", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -43821,14 +43821,14 @@ "@opentelemetry/sdk-trace-node": { "version": "file:packages/opentelemetry-sdk-trace-node", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/propagator-jaeger": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/propagator-jaeger": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -43849,13 +43849,13 @@ "requires": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/jquery": "3.5.29", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -44028,17 +44028,17 @@ "@babel/plugin-proposal-decorators": "7.22.15", "@babel/plugin-transform-runtime": "7.22.15", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-zone-peer-dep": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-fetch": "0.48.0", - "@opentelemetry/instrumentation-xml-http-request": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-zone-peer-dep": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-fetch": "0.49.0", + "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", "babel-loader": "8.3.0", "babel-polyfill": "6.26.0", "browserstack-local": "1.4.8", @@ -44403,12 +44403,12 @@ "version": "file:experimental/packages/shim-opencensus", "requires": { "@opencensus/core": "0.1.0", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -44427,12 +44427,12 @@ "@opentelemetry/shim-opentracing": { "version": "file:packages/opentelemetry-shim-opentracing", "requires": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/propagator-jaeger": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/propagator-jaeger": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -47170,8 +47170,8 @@ "backcompat-node14": { "version": "file:experimental/backwards-compatibility/node14", "requires": { - "@opentelemetry/sdk-node": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/node": "14.18.25", "typescript": "4.4.4" }, @@ -47185,8 +47185,8 @@ "backcompat-node16": { "version": "file:experimental/backwards-compatibility/node16", "requires": { - "@opentelemetry/sdk-node": "0.48.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/node": "16.11.52", "typescript": "4.4.4" }, @@ -49765,14 +49765,14 @@ "esm-http-ts": { "version": "file:examples/esm-http-ts", "requires": { - "@opentelemetry/api": "1.7.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/api": "1.8.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" } }, "espree": { @@ -49903,17 +49903,17 @@ "version": "file:examples/otlp-exporter-node", "requires": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/exporter-metrics-otlp-proto": "0.48.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-proto": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" } }, "execa": { @@ -51463,14 +51463,14 @@ "version": "file:examples/http", "requires": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "cross-env": "^6.0.0" } }, @@ -51556,14 +51556,14 @@ "version": "file:examples/https", "requires": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/exporter-jaeger": "1.21.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-http": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/exporter-jaeger": "1.22.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "cross-env": "^6.0.0" } }, @@ -53291,8 +53291,8 @@ "version": "file:experimental/examples/logs", "requires": { "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "0.48.0", - "@opentelemetry/sdk-logs": "0.48.0", + "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.0", "@types/node": "18.6.5", "ts-node": "^10.9.1" }, @@ -55721,14 +55721,14 @@ "@opencensus/core": "0.1.0", "@opencensus/instrumentation-http": "0.1.0", "@opencensus/nodejs-base": "0.1.0", - "@opentelemetry/api": "1.7.0", - "@opentelemetry/exporter-prometheus": "0.48.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.48.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-node": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", - "@opentelemetry/shim-opencensus": "0.48.0" + "@opentelemetry/api": "1.8.0", + "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-node": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", + "@opentelemetry/shim-opencensus": "0.49.0" } }, "opentracing": { @@ -56544,8 +56544,8 @@ "version": "file:experimental/examples/prometheus", "requires": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-prometheus": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0" + "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0" } }, "promise-all-reject-late": { @@ -56583,9 +56583,9 @@ "version": "file:integration-tests/propagation-validation-server", "requires": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "axios": "1.5.1", "body-parser": "1.19.0", "express": "4.17.3", @@ -60264,20 +60264,20 @@ "@babel/core": "^7.23.6", "@babel/preset-env": "^7.22.20", "@opentelemetry/api": "^1.3.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-fetch": "0.48.0", - "@opentelemetry/instrumentation-xml-http-request": "0.48.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-fetch": "0.49.0", + "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "babel-loader": "^8.0.6", "ts-loader": "^9.2.6", "typescript": "^4.5.2", diff --git a/packages/opentelemetry-context-async-hooks/package.json b/packages/opentelemetry-context-async-hooks/package.json index 0a4990bfe1..12632ff8c3 100644 --- a/packages/opentelemetry-context-async-hooks/package.json +++ b/packages/opentelemetry-context-async-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/context-async-hooks", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry AsyncHooks-based Context Manager", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -44,7 +44,7 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -56,7 +56,7 @@ "typescript": "4.4.4" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-context-async-hooks", "sideEffects": false diff --git a/packages/opentelemetry-context-zone-peer-dep/package.json b/packages/opentelemetry-context-zone-peer-dep/package.json index a3670ad10f..9f9922693a 100644 --- a/packages/opentelemetry-context-zone-peer-dep/package.json +++ b/packages/opentelemetry-context-zone-peer-dep/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/context-zone-peer-dep", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Context Zone with peer dependency for zone.js", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -55,7 +55,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -83,7 +83,7 @@ "zone.js": "0.13.3" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "zone.js": "^0.10.2 || ^0.11.0 || ^0.13.0 || ^0.14.0" }, "sideEffects": false, diff --git a/packages/opentelemetry-context-zone/package.json b/packages/opentelemetry-context-zone/package.json index e5d964c092..f99f7227f2 100644 --- a/packages/opentelemetry-context-zone/package.json +++ b/packages/opentelemetry-context-zone/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/context-zone", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Context Zone", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -55,7 +55,7 @@ "typescript": "4.4.4" }, "dependencies": { - "@opentelemetry/context-zone-peer-dep": "1.21.0", + "@opentelemetry/context-zone-peer-dep": "1.22.0", "zone.js": "^0.11.0 || ^0.13.0 || ^0.14.0" }, "sideEffects": true, diff --git a/packages/opentelemetry-core/package.json b/packages/opentelemetry-core/package.json index 8352567cea..077126b6b3 100644 --- a/packages/opentelemetry-core/package.json +++ b/packages/opentelemetry-core/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/core", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -64,7 +64,7 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -88,10 +88,10 @@ "webpack": "5.89.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-core", "sideEffects": false diff --git a/packages/opentelemetry-exporter-jaeger/package.json b/packages/opentelemetry-exporter-jaeger/package.json index 9c902b882f..ddaa456519 100644 --- a/packages/opentelemetry-exporter-jaeger/package.json +++ b/packages/opentelemetry-exporter-jaeger/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-jaeger", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Exporter Jaeger allows user to send collected traces to Jaeger", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -45,7 +45,7 @@ }, "devDependencies": { "@opentelemetry/api": "^1.0.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -63,9 +63,9 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "jaeger-client": "^3.15.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-jaeger", diff --git a/packages/opentelemetry-exporter-zipkin/package.json b/packages/opentelemetry-exporter-zipkin/package.json index 1c815a0329..3ca6ee161c 100644 --- a/packages/opentelemetry-exporter-zipkin/package.json +++ b/packages/opentelemetry-exporter-zipkin/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-zipkin", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Zipkin Exporter allows the user to send collected traces to Zipkin.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -93,10 +93,10 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-zipkin", "sideEffects": false diff --git a/packages/opentelemetry-propagator-b3/package.json b/packages/opentelemetry-propagator-b3/package.json index fa26ac2ef5..29e8b2a892 100644 --- a/packages/opentelemetry-propagator-b3/package.json +++ b/packages/opentelemetry-propagator-b3/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/propagator-b3", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry B3 propagator provides context propagation for systems that are using the B3 header format", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -51,13 +51,13 @@ "access": "public" }, "dependencies": { - "@opentelemetry/core": "1.21.0" + "@opentelemetry/core": "1.22.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", diff --git a/packages/opentelemetry-propagator-jaeger/package.json b/packages/opentelemetry-propagator-jaeger/package.json index d29a95eb12..ead27f38ad 100644 --- a/packages/opentelemetry-propagator-jaeger/package.json +++ b/packages/opentelemetry-propagator-jaeger/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/propagator-jaeger", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Jaeger propagator provides HTTP header propagation for systems that are using Jaeger HTTP header format.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -54,7 +54,7 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -78,10 +78,10 @@ "webpack": "5.89.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0" + "@opentelemetry/core": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-propagator-jaeger", "sideEffects": false diff --git a/packages/opentelemetry-resources/package.json b/packages/opentelemetry-resources/package.json index 0ecb875cdd..dfd6d25faa 100644 --- a/packages/opentelemetry-resources/package.json +++ b/packages/opentelemetry-resources/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/resources", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry SDK resources", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -61,7 +61,7 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -88,11 +88,11 @@ "webpack-merge": "5.10.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources", "sideEffects": false diff --git a/packages/opentelemetry-sdk-trace-base/package.json b/packages/opentelemetry-sdk-trace-base/package.json index 4dedb26a3b..b2c4a8fe82 100644 --- a/packages/opentelemetry-sdk-trace-base/package.json +++ b/packages/opentelemetry-sdk-trace-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-trace-base", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Tracing", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -65,7 +65,7 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -90,12 +90,12 @@ "webpack": "5.89.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base", "sideEffects": false diff --git a/packages/opentelemetry-sdk-trace-node/package.json b/packages/opentelemetry-sdk-trace-node/package.json index bd6c177497..eb1d77c137 100644 --- a/packages/opentelemetry-sdk-trace-node/package.json +++ b/packages/opentelemetry-sdk-trace-node/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-trace-node", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Node SDK provides automatic telemetry (tracing, metrics, etc) for Node.js applications", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -45,9 +45,9 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/resources": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/resources": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/semver": "7.5.6", @@ -62,14 +62,14 @@ "typescript": "4.4.4" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/context-async-hooks": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/propagator-jaeger": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/context-async-hooks": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/propagator-jaeger": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "semver": "^7.5.2" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node", diff --git a/packages/opentelemetry-sdk-trace-web/package.json b/packages/opentelemetry-sdk-trace-web/package.json index f7ebf99881..2859fb54ea 100644 --- a/packages/opentelemetry-sdk-trace-web/package.json +++ b/packages/opentelemetry-sdk-trace-web/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-trace-web", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry Web Tracer", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -57,10 +57,10 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/context-zone": "1.21.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/context-zone": "1.22.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/resources": "1.22.0", "@types/jquery": "3.5.29", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -90,12 +90,12 @@ "webpack-merge": "5.10.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0" + "@opentelemetry/core": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-web", "sideEffects": false diff --git a/packages/opentelemetry-semantic-conventions/package.json b/packages/opentelemetry-semantic-conventions/package.json index cb8be8ab6f..63b09b85a4 100644 --- a/packages/opentelemetry-semantic-conventions/package.json +++ b/packages/opentelemetry-semantic-conventions/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/semantic-conventions", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry semantic conventions", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -50,12 +50,12 @@ "access": "public" }, "devDependencies": { - "@types/mocha": "10.0.6", - "@types/node": "18.6.5", - "@types/sinon": "10.0.20", "@size-limit/file": "^11.0.1", "@size-limit/time": "^11.0.1", "@size-limit/webpack": "^11.0.1", + "@types/mocha": "10.0.6", + "@types/node": "18.6.5", + "@types/sinon": "10.0.20", "codecov": "3.8.3", "cross-var": "1.1.0", "lerna": "6.6.2", diff --git a/packages/opentelemetry-shim-opentracing/package.json b/packages/opentelemetry-shim-opentracing/package.json index 8cd0f414fe..38f4803622 100644 --- a/packages/opentelemetry-shim-opentracing/package.json +++ b/packages/opentelemetry-shim-opentracing/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/shim-opentracing", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTracing to OpenTelemetry shim", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -42,10 +42,10 @@ "access": "public" }, "devDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0", - "@opentelemetry/propagator-b3": "1.21.0", - "@opentelemetry/propagator-jaeger": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", + "@opentelemetry/api": ">=1.0.0 <1.9.0", + "@opentelemetry/propagator-b3": "1.22.0", + "@opentelemetry/propagator-jaeger": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "codecov": "3.8.3", @@ -57,11 +57,11 @@ "typescript": "4.4.4" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.8.0" + "@opentelemetry/api": ">=1.0.0 <1.9.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/semantic-conventions": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/semantic-conventions": "1.22.0", "opentracing": "^0.14.4" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-shim-opentracing", diff --git a/packages/sdk-metrics/package.json b/packages/sdk-metrics/package.json index 38495b57d3..4ad2d4ad0b 100644 --- a/packages/sdk-metrics/package.json +++ b/packages/sdk-metrics/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-metrics", - "version": "1.21.0", + "version": "1.22.0", "description": "OpenTelemetry metrics SDK", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -56,7 +56,7 @@ "devDependencies": { "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": ">=1.3.0 <1.8.0", + "@opentelemetry/api": ">=1.3.0 <1.9.0", "@types/lodash.merge": "4.6.9", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -82,11 +82,11 @@ "webpack-merge": "5.10.0" }, "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.8.0" + "@opentelemetry/api": ">=1.3.0 <1.9.0" }, "dependencies": { - "@opentelemetry/core": "1.21.0", - "@opentelemetry/resources": "1.21.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/resources": "1.22.0", "lodash.merge": "^4.6.2" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/sdk-metrics", diff --git a/packages/template/package.json b/packages/template/package.json index f144239f2e..9abd7bae0d 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/template", - "version": "1.21.0", + "version": "1.22.0", "private": true, "publishConfig": { "access": "restricted" diff --git a/selenium-tests/package.json b/selenium-tests/package.json index 6ec77a3f8a..fedf9f94b0 100644 --- a/selenium-tests/package.json +++ b/selenium-tests/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/selenium-tests", - "version": "1.22.0", + "version": "1.23.0", "private": true, "description": "OpenTelemetry Selenium Tests", "main": "index.js", @@ -36,7 +36,7 @@ "@babel/plugin-proposal-decorators": "7.22.15", "@babel/plugin-transform-runtime": "7.22.15", "@babel/preset-env": "7.22.20", - "@opentelemetry/api": "1.7.0", + "@opentelemetry/api": "1.8.0", "babel-loader": "8.3.0", "babel-polyfill": "6.26.0", "browserstack-local": "1.4.8", @@ -56,16 +56,16 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/context-zone-peer-dep": "1.21.0", - "@opentelemetry/core": "1.21.0", - "@opentelemetry/exporter-trace-otlp-http": "0.48.0", - "@opentelemetry/exporter-zipkin": "1.21.0", - "@opentelemetry/instrumentation": "0.48.0", - "@opentelemetry/instrumentation-fetch": "0.48.0", - "@opentelemetry/instrumentation-xml-http-request": "0.48.0", - "@opentelemetry/sdk-metrics": "1.21.0", - "@opentelemetry/sdk-trace-base": "1.21.0", - "@opentelemetry/sdk-trace-web": "1.21.0", + "@opentelemetry/context-zone-peer-dep": "1.22.0", + "@opentelemetry/core": "1.22.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-zipkin": "1.22.0", + "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation-fetch": "0.49.0", + "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/sdk-metrics": "1.22.0", + "@opentelemetry/sdk-trace-base": "1.22.0", + "@opentelemetry/sdk-trace-web": "1.22.0", "zone.js": "^0.11.0 || ^0.13.0 || ^0.14.0" } } From 8e1996ef0d0ad5c531f793b2a1571c7101bf94de Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Thu, 29 Feb 2024 14:09:39 +0100 Subject: [PATCH 06/10] fix(instrumentation): remove peer-dependency on @opentelemetry/api-logs (#4515) * fix(instrumentation): remove peer-dependency on @opentelemetry/api-logs as it's an experimental package * docs: changelog * fix: sync package-lock.json --- experimental/CHANGELOG.md | 2 ++ .../packages/opentelemetry-instrumentation/package.json | 6 +++--- package-lock.json | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index dc1e23dc10..9933f12ac9 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -10,6 +10,8 @@ All notable changes to experimental packages in this project will be documented ### :bug: (Bug Fix) +* fix(instrumentation): don't add `@opentelemetry/api-logs` as a `peerDependency` + ### :books: (Refine Doc) ### :house: (Internal) diff --git a/experimental/packages/opentelemetry-instrumentation/package.json b/experimental/packages/opentelemetry-instrumentation/package.json index 4dba2101b7..4ba6c03ef7 100644 --- a/experimental/packages/opentelemetry-instrumentation/package.json +++ b/experimental/packages/opentelemetry-instrumentation/package.json @@ -75,11 +75,11 @@ "import-in-the-middle": "1.7.1", "require-in-the-middle": "^7.1.1", "semver": "^7.5.2", - "shimmer": "^1.2.1" + "shimmer": "^1.2.1", + "@opentelemetry/api-logs": "^0.49.0" }, "peerDependencies": { - "@opentelemetry/api": "^1.3.0", - "@opentelemetry/api-logs": "^0.46.0" + "@opentelemetry/api": "^1.3.0" }, "devDependencies": { "@babel/core": "7.23.6", diff --git a/package-lock.json b/package-lock.json index b7a1ceceef..37e77a75f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3107,6 +3107,7 @@ "version": "0.49.0", "license": "Apache-2.0", "dependencies": { + "@opentelemetry/api-logs": "^0.49.0", "@types/shimmer": "^1.0.2", "import-in-the-middle": "1.7.1", "require-in-the-middle": "^7.1.1", @@ -3150,8 +3151,7 @@ "node": ">=14" }, "peerDependencies": { - "@opentelemetry/api": "^1.3.0", - "@opentelemetry/api-logs": "^0.46.0" + "@opentelemetry/api": "^1.3.0" } }, "experimental/packages/opentelemetry-instrumentation-fetch": { From 3920b158d08daa776280bde68a79e44bafa4e8ea Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Thu, 29 Feb 2024 14:35:54 +0100 Subject: [PATCH 07/10] chore: prepare release Experimental 0.49.1 (#4517) --- examples/esm-http-ts/package.json | 8 +- examples/http/package.json | 6 +- examples/https/package.json | 6 +- examples/opentelemetry-web/package.json | 14 +- examples/otlp-exporter-node/package.json | 14 +- experimental/CHANGELOG.md | 8 +- .../node14/package.json | 4 +- .../node16/package.json | 4 +- experimental/examples/logs/package.json | 6 +- .../examples/opencensus-shim/package.json | 8 +- experimental/examples/prometheus/package.json | 4 +- experimental/packages/api-events/package.json | 2 +- experimental/packages/api-logs/package.json | 2 +- .../exporter-logs-otlp-grpc/package.json | 12 +- .../exporter-logs-otlp-http/package.json | 10 +- .../exporter-logs-otlp-proto/package.json | 12 +- .../exporter-trace-otlp-grpc/package.json | 8 +- .../exporter-trace-otlp-http/package.json | 6 +- .../exporter-trace-otlp-proto/package.json | 8 +- .../package.json | 2 +- .../package.json | 8 +- .../package.json | 6 +- .../package.json | 10 +- .../package.json | 2 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 6 +- .../opentelemetry-sdk-node/package.json | 14 +- .../packages/otlp-exporter-base/package.json | 2 +- .../otlp-grpc-exporter-base/package.json | 6 +- .../otlp-proto-exporter-base/package.json | 4 +- .../packages/otlp-transformer/package.json | 6 +- experimental/packages/sdk-logs/package.json | 4 +- .../packages/shim-opencensus/package.json | 2 +- integration-tests/api/package.json | 2 +- .../package.json | 2 +- package-lock.json | 390 +++++++++--------- selenium-tests/package.json | 10 +- 40 files changed, 319 insertions(+), 315 deletions(-) diff --git a/examples/esm-http-ts/package.json b/examples/esm-http-ts/package.json index 012e4937bc..17d1a375a5 100644 --- a/examples/esm-http-ts/package.json +++ b/examples/esm-http-ts/package.json @@ -1,7 +1,7 @@ { "name": "esm-http-ts", "private": true, - "version": "0.49.0", + "version": "0.49.1", "description": "Example of HTTP integration with OpenTelemetry using ESM and TypeScript", "main": "build/index.js", "type": "module", @@ -31,9 +31,9 @@ "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/", "dependencies": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", diff --git a/examples/http/package.json b/examples/http/package.json index 5837942835..a6e955bf0e 100644 --- a/examples/http/package.json +++ b/examples/http/package.json @@ -1,7 +1,7 @@ { "name": "http-example", "private": true, - "version": "0.49.0", + "version": "0.49.1", "description": "Example of HTTP integration with OpenTelemetry", "main": "index.js", "scripts": { @@ -31,8 +31,8 @@ "@opentelemetry/api": "^1.3.0", "@opentelemetry/exporter-jaeger": "1.22.0", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", diff --git a/examples/https/package.json b/examples/https/package.json index 08a48aca8d..b32114a2b2 100644 --- a/examples/https/package.json +++ b/examples/https/package.json @@ -1,7 +1,7 @@ { "name": "https-example", "private": true, - "version": "0.49.0", + "version": "0.49.1", "description": "Example of HTTPs integration with OpenTelemetry", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -35,8 +35,8 @@ "@opentelemetry/api": "^1.0.0", "@opentelemetry/exporter-jaeger": "1.22.0", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", diff --git a/examples/opentelemetry-web/package.json b/examples/opentelemetry-web/package.json index d90b7e66cd..28e841b79d 100644 --- a/examples/opentelemetry-web/package.json +++ b/examples/opentelemetry-web/package.json @@ -1,7 +1,7 @@ { "name": "web-opentelemetry-example", "private": true, - "version": "0.49.0", + "version": "0.49.1", "description": "Example of using @opentelemetry/sdk-trace-web and @opentelemetry/sdk-metrics in browser", "main": "index.js", "scripts": { @@ -46,13 +46,13 @@ "@opentelemetry/api": "^1.3.0", "@opentelemetry/context-zone": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-fetch": "0.49.0", - "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-fetch": "0.49.1", + "@opentelemetry/instrumentation-xml-http-request": "0.49.1", "@opentelemetry/propagator-b3": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", diff --git a/examples/otlp-exporter-node/package.json b/examples/otlp-exporter-node/package.json index b9f8feb53e..0ee4655865 100644 --- a/examples/otlp-exporter-node/package.json +++ b/examples/otlp-exporter-node/package.json @@ -1,7 +1,7 @@ { "name": "example-otlp-exporter-node", "private": true, - "version": "0.49.0", + "version": "0.49.1", "description": "Example of using @opentelemetry/collector-exporter in Node.js", "main": "index.js", "scripts": { @@ -30,12 +30,12 @@ "dependencies": { "@opentelemetry/api": "^1.3.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/exporter-metrics-otlp-proto": "0.49.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/exporter-metrics-otlp-proto": "0.49.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 9933f12ac9..51e7e58217 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -10,12 +10,16 @@ All notable changes to experimental packages in this project will be documented ### :bug: (Bug Fix) -* fix(instrumentation): don't add `@opentelemetry/api-logs` as a `peerDependency` - ### :books: (Refine Doc) ### :house: (Internal) +## 0.49.1 + +### :bug: (Bug Fix) + +* fix(instrumentation): don't add `@opentelemetry/api-logs` as a `peerDependency` + ## 0.49.0 ### :boom: Breaking Change diff --git a/experimental/backwards-compatibility/node14/package.json b/experimental/backwards-compatibility/node14/package.json index cd669cbf16..9eaebc5f39 100644 --- a/experimental/backwards-compatibility/node14/package.json +++ b/experimental/backwards-compatibility/node14/package.json @@ -1,6 +1,6 @@ { "name": "backcompat-node14", - "version": "0.49.0", + "version": "0.49.1", "private": true, "description": "Backwards compatibility app for node 14 types and the OpenTelemetry Node.js SDK", "main": "index.js", @@ -9,7 +9,7 @@ "peer-api-check": "node ../../../scripts/peer-api-check.js" }, "dependencies": { - "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-node": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { diff --git a/experimental/backwards-compatibility/node16/package.json b/experimental/backwards-compatibility/node16/package.json index b0a3f234be..2efe0f852d 100644 --- a/experimental/backwards-compatibility/node16/package.json +++ b/experimental/backwards-compatibility/node16/package.json @@ -1,6 +1,6 @@ { "name": "backcompat-node16", - "version": "0.49.0", + "version": "0.49.1", "private": true, "description": "Backwards compatibility app for node 16 types and the OpenTelemetry Node.js SDK", "main": "index.js", @@ -9,7 +9,7 @@ "peer-api-check": "node ../../../scripts/peer-api-check.js" }, "dependencies": { - "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-node": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { diff --git a/experimental/examples/logs/package.json b/experimental/examples/logs/package.json index 91385afe0e..af5423cb58 100644 --- a/experimental/examples/logs/package.json +++ b/experimental/examples/logs/package.json @@ -1,14 +1,14 @@ { "name": "logs-example", - "version": "0.49.0", + "version": "0.49.1", "private": true, "scripts": { "start": "ts-node index.ts" }, "dependencies": { "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0" + "@opentelemetry/api-logs": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1" }, "devDependencies": { "@types/node": "18.6.5", diff --git a/experimental/examples/opencensus-shim/package.json b/experimental/examples/opencensus-shim/package.json index 2755c7cbc7..ad586debab 100644 --- a/experimental/examples/opencensus-shim/package.json +++ b/experimental/examples/opencensus-shim/package.json @@ -1,7 +1,7 @@ { "name": "opencensus-shim", "private": true, - "version": "0.49.0", + "version": "0.49.1", "description": "Example of using @opentelemetry/shim-opencensus in Node.js", "main": "index.js", "scripts": { @@ -31,13 +31,13 @@ "@opencensus/instrumentation-http": "0.1.0", "@opencensus/nodejs-base": "0.1.0", "@opentelemetry/api": "1.8.0", - "@opentelemetry/exporter-prometheus": "0.49.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-prometheus": "0.49.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0", - "@opentelemetry/shim-opencensus": "0.49.0" + "@opentelemetry/shim-opencensus": "0.49.1" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/examples/opencensus-shim" } diff --git a/experimental/examples/prometheus/package.json b/experimental/examples/prometheus/package.json index af2b980df7..10c8a48e8e 100644 --- a/experimental/examples/prometheus/package.json +++ b/experimental/examples/prometheus/package.json @@ -1,6 +1,6 @@ { "name": "prometheus-example", - "version": "0.49.0", + "version": "0.49.1", "private": true, "description": "Example of using @opentelemetry/sdk-metrics and @opentelemetry/exporter-prometheus", "main": "index.js", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/exporter-prometheus": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0" } } diff --git a/experimental/packages/api-events/package.json b/experimental/packages/api-events/package.json index 9dce03ae16..f1b40f080e 100644 --- a/experimental/packages/api-events/package.json +++ b/experimental/packages/api-events/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/api-events", - "version": "0.49.0", + "version": "0.49.1", "description": "Public events API for OpenTelemetry", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/experimental/packages/api-logs/package.json b/experimental/packages/api-logs/package.json index afe07aef5f..ffc178b566 100644 --- a/experimental/packages/api-logs/package.json +++ b/experimental/packages/api-logs/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/api-logs", - "version": "0.49.0", + "version": "0.49.1", "description": "Public logs API for OpenTelemetry", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/experimental/packages/exporter-logs-otlp-grpc/package.json b/experimental/packages/exporter-logs-otlp-grpc/package.json index 9f099bbeba..6a41dcbb22 100644 --- a/experimental/packages/exporter-logs-otlp-grpc/package.json +++ b/experimental/packages/exporter-logs-otlp-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-logs-otlp-grpc", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Exporter allows user to send collected log records to the OpenTelemetry Collector", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -50,8 +50,8 @@ "devDependencies": { "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", + "@opentelemetry/otlp-exporter-base": "0.49.1", "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -73,9 +73,9 @@ "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0" + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-logs-otlp-grpc", "sideEffects": false diff --git a/experimental/packages/exporter-logs-otlp-http/package.json b/experimental/packages/exporter-logs-otlp-http/package.json index 36f4479b0d..87b89e7027 100644 --- a/experimental/packages/exporter-logs-otlp-http/package.json +++ b/experimental/packages/exporter-logs-otlp-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-logs-otlp-http", - "version": "0.49.0", + "version": "0.49.1", "publishConfig": { "access": "public" }, @@ -105,10 +105,10 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0" + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1" } } diff --git a/experimental/packages/exporter-logs-otlp-proto/package.json b/experimental/packages/exporter-logs-otlp-proto/package.json index 8f63d2fc7e..9e3a201193 100644 --- a/experimental/packages/exporter-logs-otlp-proto/package.json +++ b/experimental/packages/exporter-logs-otlp-proto/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-logs-otlp-proto", - "version": "0.49.0", + "version": "0.49.1", "description": "An OTLP exporter to send logs using protobuf over HTTP", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -94,13 +94,13 @@ "@opentelemetry/api": "^1.0.0" }, "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-logs-otlp-proto", diff --git a/experimental/packages/exporter-trace-otlp-grpc/package.json b/experimental/packages/exporter-trace-otlp-grpc/package.json index 35e6f307c0..083b536b7d 100644 --- a/experimental/packages/exporter-trace-otlp-grpc/package.json +++ b/experimental/packages/exporter-trace-otlp-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-trace-otlp-grpc", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -49,7 +49,7 @@ "devDependencies": { "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -70,8 +70,8 @@ "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, diff --git a/experimental/packages/exporter-trace-otlp-http/package.json b/experimental/packages/exporter-trace-otlp-http/package.json index 87a4b6c95e..d42722dad2 100644 --- a/experimental/packages/exporter-trace-otlp-http/package.json +++ b/experimental/packages/exporter-trace-otlp-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-trace-otlp-http", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Trace Exporter allows user to send collected traces to the OpenTelemetry Collector", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -97,8 +97,8 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, diff --git a/experimental/packages/exporter-trace-otlp-proto/package.json b/experimental/packages/exporter-trace-otlp-proto/package.json index 51a98e9ca3..538cbfbf96 100644 --- a/experimental/packages/exporter-trace-otlp-proto/package.json +++ b/experimental/packages/exporter-trace-otlp-proto/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-trace-otlp-proto", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector using protobuf over HTTP", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -94,9 +94,9 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, diff --git a/experimental/packages/opentelemetry-browser-detector/package.json b/experimental/packages/opentelemetry-browser-detector/package.json index 6ccb2d9b7e..9c62205678 100644 --- a/experimental/packages/opentelemetry-browser-detector/package.json +++ b/experimental/packages/opentelemetry-browser-detector/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/opentelemetry-browser-detector", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Resource Detector for Browser", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json index 18096b1cc8..81bb6fbbab 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-metrics-otlp-grpc", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -69,9 +69,9 @@ "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0" }, diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json index 27b1d0612c..45499e5c93 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-metrics-otlp-http", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -97,8 +97,8 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0" }, diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json index 141c7fc3e9..c878e3e8e7 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-metrics-otlp-proto", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector using protobuf over HTTP", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -75,10 +75,10 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0" }, diff --git a/experimental/packages/opentelemetry-exporter-prometheus/package.json b/experimental/packages/opentelemetry-exporter-prometheus/package.json index 3c6e1cfebf..6d9bd19d96 100644 --- a/experimental/packages/opentelemetry-exporter-prometheus/package.json +++ b/experimental/packages/opentelemetry-exporter-prometheus/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/exporter-prometheus", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus", "main": "build/src/index.js", "types": "build/src/index.d.ts", diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/package.json b/experimental/packages/opentelemetry-instrumentation-fetch/package.json index 3d85f794f5..b5839a3db8 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/package.json +++ b/experimental/packages/opentelemetry-instrumentation-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-fetch", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry fetch automatic instrumentation package.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -90,7 +90,7 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/sdk-trace-web": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0" }, diff --git a/experimental/packages/opentelemetry-instrumentation-grpc/package.json b/experimental/packages/opentelemetry-instrumentation-grpc/package.json index e8142fcb39..56303ee8f4 100644 --- a/experimental/packages/opentelemetry-instrumentation-grpc/package.json +++ b/experimental/packages/opentelemetry-instrumentation-grpc/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-grpc", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry grpc automatic instrumentation package.", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -75,7 +75,7 @@ "@opentelemetry/api": "^1.3.0" }, "dependencies": { - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/semantic-conventions": "1.22.0" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-grpc", diff --git a/experimental/packages/opentelemetry-instrumentation-http/package.json b/experimental/packages/opentelemetry-instrumentation-http/package.json index f6c816c8c6..fbc4597aad 100644 --- a/experimental/packages/opentelemetry-instrumentation-http/package.json +++ b/experimental/packages/opentelemetry-instrumentation-http/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-http", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry http/https automatic instrumentation package.", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -75,7 +75,7 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/semantic-conventions": "1.22.0", "semver": "^7.5.2" }, diff --git a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json index 9ee992c261..dcca42a108 100644 --- a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json +++ b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation-xml-http-request", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry XMLHttpRequest automatic instrumentation package.", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -90,7 +90,7 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/sdk-trace-web": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0" }, diff --git a/experimental/packages/opentelemetry-instrumentation/package.json b/experimental/packages/opentelemetry-instrumentation/package.json index 4ba6c03ef7..e2a1785aa4 100644 --- a/experimental/packages/opentelemetry-instrumentation/package.json +++ b/experimental/packages/opentelemetry-instrumentation/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/instrumentation", - "version": "0.49.0", + "version": "0.49.1", "description": "Base class for node which OpenTelemetry instrumentation modules extend", "author": "OpenTelemetry Authors", "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation", @@ -71,12 +71,12 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "dependencies": { + "@opentelemetry/api-logs": "0.49.1", "@types/shimmer": "^1.0.2", "import-in-the-middle": "1.7.1", "require-in-the-middle": "^7.1.1", "semver": "^7.5.2", - "shimmer": "^1.2.1", - "@opentelemetry/api-logs": "^0.49.0" + "shimmer": "^1.2.1" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" diff --git a/experimental/packages/opentelemetry-sdk-node/package.json b/experimental/packages/opentelemetry-sdk-node/package.json index d30d97f2e3..a7513f3674 100644 --- a/experimental/packages/opentelemetry-sdk-node/package.json +++ b/experimental/packages/opentelemetry-sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-node", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry SDK for Node.js", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -44,15 +44,15 @@ "access": "public" }, "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", diff --git a/experimental/packages/otlp-exporter-base/package.json b/experimental/packages/otlp-exporter-base/package.json index c6e6c95957..eb4fc6b955 100644 --- a/experimental/packages/otlp-exporter-base/package.json +++ b/experimental/packages/otlp-exporter-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/otlp-exporter-base", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry OTLP Exporter base (for internal use only)", "main": "build/src/index.js", "module": "build/esm/index.js", diff --git a/experimental/packages/otlp-grpc-exporter-base/package.json b/experimental/packages/otlp-grpc-exporter-base/package.json index 4ffc99d8b7..f12206137b 100644 --- a/experimental/packages/otlp-grpc-exporter-base/package.json +++ b/experimental/packages/otlp-grpc-exporter-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/otlp-grpc-exporter-base", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry OTLP-gRPC Exporter base (for internal use only)", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -49,7 +49,7 @@ }, "devDependencies": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -73,7 +73,7 @@ "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "protobufjs": "^7.2.3" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-grpc-exporter-base", diff --git a/experimental/packages/otlp-proto-exporter-base/package.json b/experimental/packages/otlp-proto-exporter-base/package.json index 56bbaf8ce1..3da043a8b0 100644 --- a/experimental/packages/otlp-proto-exporter-base/package.json +++ b/experimental/packages/otlp-proto-exporter-base/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/otlp-proto-exporter-base", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenTelemetry OTLP-HTTP-protobuf Exporter base (for internal use only)", "main": "build/src/index.js", "module": "build/esm/index.js", @@ -81,7 +81,7 @@ }, "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "protobufjs": "^7.2.3" }, "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-proto-exporter-base", diff --git a/experimental/packages/otlp-transformer/package.json b/experimental/packages/otlp-transformer/package.json index 1baa27525d..e79130b68e 100644 --- a/experimental/packages/otlp-transformer/package.json +++ b/experimental/packages/otlp-transformer/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "0.49.0", + "version": "0.49.1", "description": "Transform OpenTelemetry SDK data into OTLP", "module": "build/esm/index.js", "esnext": "build/esnext/index.js", @@ -79,10 +79,10 @@ "webpack": "5.89.0" }, "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, diff --git a/experimental/packages/sdk-logs/package.json b/experimental/packages/sdk-logs/package.json index f767eb61b6..9dcc7c3d90 100644 --- a/experimental/packages/sdk-logs/package.json +++ b/experimental/packages/sdk-logs/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/sdk-logs", - "version": "0.49.0", + "version": "0.49.1", "publishConfig": { "access": "public" }, @@ -75,7 +75,7 @@ "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", "@opentelemetry/api": ">=1.4.0 <1.9.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", diff --git a/experimental/packages/shim-opencensus/package.json b/experimental/packages/shim-opencensus/package.json index 711a64b6e8..ecc6e31a44 100644 --- a/experimental/packages/shim-opencensus/package.json +++ b/experimental/packages/shim-opencensus/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/shim-opencensus", - "version": "0.49.0", + "version": "0.49.1", "description": "OpenCensus to OpenTelemetry shim", "main": "build/src/index.js", "types": "build/src/index.d.ts", diff --git a/integration-tests/api/package.json b/integration-tests/api/package.json index 7caa2417e8..d6f3a19514 100644 --- a/integration-tests/api/package.json +++ b/integration-tests/api/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/integration-tests-api", - "version": "1.22.0", + "version": "1.22.1", "private": true, "publishConfig": { "access": "restricted" diff --git a/integration-tests/propagation-validation-server/package.json b/integration-tests/propagation-validation-server/package.json index 837e567dfb..925aa6333c 100644 --- a/integration-tests/propagation-validation-server/package.json +++ b/integration-tests/propagation-validation-server/package.json @@ -1,6 +1,6 @@ { "name": "propagation-validation-server", - "version": "1.23.0", + "version": "1.23.1", "description": "server for w3c tests", "main": "validation_server.js", "private": true, diff --git a/package-lock.json b/package-lock.json index 37e77a75f8..8ad74075f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -195,13 +195,13 @@ } }, "examples/esm-http-ts": { - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -213,14 +213,14 @@ }, "examples/http": { "name": "http-example", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", "@opentelemetry/exporter-jaeger": "1.22.0", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -235,14 +235,14 @@ }, "examples/https": { "name": "https-example", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0", "@opentelemetry/exporter-jaeger": "1.22.0", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -257,19 +257,19 @@ }, "examples/opentelemetry-web": { "name": "web-opentelemetry-example", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", "@opentelemetry/context-zone": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-fetch": "0.49.0", - "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-fetch": "0.49.1", + "@opentelemetry/instrumentation-xml-http-request": "0.49.1", "@opentelemetry/propagator-b3": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", @@ -609,17 +609,17 @@ }, "examples/otlp-exporter-node": { "name": "example-otlp-exporter-node", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/exporter-metrics-otlp-proto": "0.49.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/exporter-metrics-otlp-proto": "0.49.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", @@ -631,10 +631,10 @@ }, "experimental/backwards-compatibility/node14": { "name": "backcompat-node14", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-node": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { @@ -652,10 +652,10 @@ }, "experimental/backwards-compatibility/node16": { "name": "backcompat-node16", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-node": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { @@ -673,11 +673,11 @@ }, "experimental/examples/logs": { "name": "logs-example", - "version": "0.49.0", + "version": "0.49.1", "dependencies": { "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0" + "@opentelemetry/api-logs": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1" }, "devDependencies": { "@types/node": "18.6.5", @@ -743,20 +743,20 @@ } }, "experimental/examples/opencensus-shim": { - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opencensus/core": "0.1.0", "@opencensus/instrumentation-http": "0.1.0", "@opencensus/nodejs-base": "0.1.0", "@opentelemetry/api": "1.8.0", - "@opentelemetry/exporter-prometheus": "0.49.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-prometheus": "0.49.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0", - "@opentelemetry/shim-opencensus": "0.49.0" + "@opentelemetry/shim-opencensus": "0.49.1" }, "engines": { "node": ">=14" @@ -764,17 +764,17 @@ }, "experimental/examples/prometheus": { "name": "prometheus-example", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/exporter-prometheus": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0" } }, "experimental/packages/api-events": { "name": "@opentelemetry/api-events", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0" @@ -913,7 +913,7 @@ }, "experimental/packages/api-logs": { "name": "@opentelemetry/api-logs", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0" @@ -1052,20 +1052,20 @@ }, "experimental/packages/exporter-logs-otlp-grpc": { "name": "@opentelemetry/exporter-logs-otlp-grpc", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0" + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1" }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", + "@opentelemetry/otlp-exporter-base": "0.49.1", "@opentelemetry/resources": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -1090,14 +1090,14 @@ }, "experimental/packages/exporter-logs-otlp-http": { "name": "@opentelemetry/exporter-logs-otlp-http", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0" + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1" }, "devDependencies": { "@babel/core": "7.23.6", @@ -1404,16 +1404,16 @@ }, "experimental/packages/exporter-logs-otlp-proto": { "name": "@opentelemetry/exporter-logs-otlp-proto", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { @@ -1718,20 +1718,20 @@ }, "experimental/packages/exporter-trace-otlp-grpc": { "name": "@opentelemetry/exporter-trace-otlp-grpc", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, "devDependencies": { "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -1755,12 +1755,12 @@ }, "experimental/packages/exporter-trace-otlp-http": { "name": "@opentelemetry/exporter-trace-otlp-http", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, @@ -2068,13 +2068,13 @@ }, "experimental/packages/exporter-trace-otlp-proto": { "name": "@opentelemetry/exporter-trace-otlp-proto", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, @@ -2380,7 +2380,7 @@ }, "experimental/packages/opentelemetry-browser-detector": { "name": "@opentelemetry/opentelemetry-browser-detector", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/resources": "1.22.0", @@ -2687,14 +2687,14 @@ }, "experimental/packages/opentelemetry-exporter-metrics-otlp-grpc": { "name": "@opentelemetry/exporter-metrics-otlp-grpc", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0" }, @@ -2724,12 +2724,12 @@ }, "experimental/packages/opentelemetry-exporter-metrics-otlp-http": { "name": "@opentelemetry/exporter-metrics-otlp-http", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0" }, @@ -3037,14 +3037,14 @@ }, "experimental/packages/opentelemetry-exporter-metrics-otlp-proto": { "name": "@opentelemetry/exporter-metrics-otlp-proto", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0" }, @@ -3073,7 +3073,7 @@ }, "experimental/packages/opentelemetry-exporter-prometheus": { "name": "@opentelemetry/exporter-prometheus", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", @@ -3104,10 +3104,10 @@ }, "experimental/packages/opentelemetry-instrumentation": { "name": "@opentelemetry/instrumentation", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "^0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@types/shimmer": "^1.0.2", "import-in-the-middle": "1.7.1", "require-in-the-middle": "^7.1.1", @@ -3156,11 +3156,11 @@ }, "experimental/packages/opentelemetry-instrumentation-fetch": { "name": "@opentelemetry/instrumentation-fetch", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/sdk-trace-web": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0" }, @@ -3470,10 +3470,10 @@ }, "experimental/packages/opentelemetry-instrumentation-grpc": { "name": "@opentelemetry/instrumentation-grpc", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/semantic-conventions": "1.22.0" }, "devDependencies": { @@ -3511,11 +3511,11 @@ }, "experimental/packages/opentelemetry-instrumentation-http": { "name": "@opentelemetry/instrumentation-http", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/semantic-conventions": "1.22.0", "semver": "^7.5.2" }, @@ -3564,11 +3564,11 @@ }, "experimental/packages/opentelemetry-instrumentation-xml-http-request": { "name": "@opentelemetry/instrumentation-xml-http-request", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/sdk-trace-web": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0" }, @@ -4166,18 +4166,18 @@ }, "experimental/packages/opentelemetry-sdk-node": { "name": "@opentelemetry/sdk-node", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -4211,7 +4211,7 @@ }, "experimental/packages/otlp-exporter-base": { "name": "@opentelemetry/otlp-exporter-base", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0" @@ -4517,17 +4517,17 @@ }, "experimental/packages/otlp-grpc-exporter-base": { "name": "@opentelemetry/otlp-grpc-exporter-base", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.7.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "protobufjs": "^7.2.3" }, "devDependencies": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -4554,11 +4554,11 @@ }, "experimental/packages/otlp-proto-exporter-base": { "name": "@opentelemetry/otlp-proto-exporter-base", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "protobufjs": "^7.2.3" }, "devDependencies": { @@ -4588,13 +4588,13 @@ }, "experimental/packages/otlp-transformer": { "name": "@opentelemetry/otlp-transformer", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0" }, @@ -4735,7 +4735,7 @@ }, "experimental/packages/sdk-logs": { "name": "@opentelemetry/sdk-logs", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", @@ -4745,7 +4745,7 @@ "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", "@opentelemetry/api": ">=1.4.0 <1.9.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -5095,7 +5095,7 @@ }, "experimental/packages/shim-opencensus": { "name": "@opentelemetry/shim-opencensus", - "version": "0.49.0", + "version": "0.49.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/core": "1.22.0", @@ -5131,7 +5131,7 @@ }, "integration-tests/api": { "name": "@opentelemetry/integration-tests-api", - "version": "1.22.0", + "version": "1.22.1", "license": "Apache-2.0", "devDependencies": { "@opentelemetry/api": "^1.0.0", @@ -5458,7 +5458,7 @@ } }, "integration-tests/propagation-validation-server": { - "version": "1.23.0", + "version": "1.23.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.0.0", @@ -36565,16 +36565,16 @@ }, "selenium-tests": { "name": "@opentelemetry/selenium-tests", - "version": "1.23.0", + "version": "1.23.1", "license": "Apache-2.0", "dependencies": { "@opentelemetry/context-zone-peer-dep": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-fetch": "0.49.0", - "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-fetch": "0.49.1", + "@opentelemetry/instrumentation-xml-http-request": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-web": "1.22.0", @@ -40539,13 +40539,13 @@ "@grpc/grpc-js": "^1.7.1", "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40567,12 +40567,12 @@ "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -40741,13 +40741,13 @@ "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", "@types/node": "18.6.5", @@ -40916,9 +40916,9 @@ "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", @@ -40943,8 +40943,8 @@ "@babel/preset-env": "7.22.20", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", @@ -41114,10 +41114,10 @@ "requires": { "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@types/mocha": "10.0.6", @@ -41163,9 +41163,9 @@ "@grpc/proto-loader": "^0.7.10", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-grpc-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-grpc-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -41190,8 +41190,8 @@ "@babel/preset-env": "7.22.20", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -41363,9 +41363,9 @@ "@babel/preset-env": "7.22.20", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-proto-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-proto-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -41904,7 +41904,7 @@ "@opentelemetry/api": "1.8.0", "@opentelemetry/context-zone": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/propagator-b3": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-web": "1.22.0", @@ -42079,7 +42079,7 @@ "@opentelemetry/api": "1.8.0", "@opentelemetry/context-async-hooks": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0", @@ -42107,7 +42107,7 @@ "@opentelemetry/api": "1.8.0", "@opentelemetry/context-async-hooks": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -42153,7 +42153,7 @@ "@opentelemetry/api": "1.8.0", "@opentelemetry/context-zone": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/propagator-b3": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-web": "1.22.0", @@ -42896,8 +42896,8 @@ "@grpc/grpc-js": "^1.7.1", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", - "@opentelemetry/otlp-transformer": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", + "@opentelemetry/otlp-transformer": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -42924,7 +42924,7 @@ "@babel/preset-env": "7.22.20", "@opentelemetry/api": "1.8.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/otlp-exporter-base": "0.49.0", + "@opentelemetry/otlp-exporter-base": "0.49.1", "@types/mocha": "10.0.6", "@types/node": "18.6.5", "@types/sinon": "10.0.20", @@ -42945,10 +42945,10 @@ "version": "file:experimental/packages/otlp-transformer", "requires": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/mocha": "10.0.6", @@ -43328,7 +43328,7 @@ "@babel/core": "7.23.6", "@babel/preset-env": "7.22.20", "@opentelemetry/api": ">=1.4.0 <1.9.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/core": "1.22.0", "@opentelemetry/resources": "1.22.0", "@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", @@ -43697,17 +43697,17 @@ "version": "file:experimental/packages/opentelemetry-sdk-node", "requires": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/api-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", "@opentelemetry/context-async-hooks": "1.22.0", "@opentelemetry/core": "1.22.0", "@opentelemetry/exporter-jaeger": "1.22.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", "@opentelemetry/resources": "1.22.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/sdk-logs": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -44031,11 +44031,11 @@ "@opentelemetry/api": "1.8.0", "@opentelemetry/context-zone-peer-dep": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-fetch": "0.49.0", - "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-fetch": "0.49.1", + "@opentelemetry/instrumentation-xml-http-request": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-web": "1.22.0", @@ -47170,7 +47170,7 @@ "backcompat-node14": { "version": "file:experimental/backwards-compatibility/node14", "requires": { - "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-node": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/node": "14.18.25", "typescript": "4.4.4" @@ -47185,7 +47185,7 @@ "backcompat-node16": { "version": "file:experimental/backwards-compatibility/node16", "requires": { - "@opentelemetry/sdk-node": "0.49.0", + "@opentelemetry/sdk-node": "0.49.1", "@opentelemetry/sdk-trace-base": "1.22.0", "@types/node": "16.11.52", "typescript": "4.4.4" @@ -49766,9 +49766,9 @@ "version": "file:examples/esm-http-ts", "requires": { "@opentelemetry/api": "1.8.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -49904,12 +49904,12 @@ "requires": { "@opentelemetry/api": "^1.3.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/exporter-metrics-otlp-proto": "0.49.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/exporter-metrics-otlp-proto": "0.49.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", @@ -51465,8 +51465,8 @@ "@opentelemetry/api": "^1.3.0", "@opentelemetry/exporter-jaeger": "1.22.0", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -51558,8 +51558,8 @@ "@opentelemetry/api": "^1.0.0", "@opentelemetry/exporter-jaeger": "1.22.0", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-http": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-http": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", @@ -53291,8 +53291,8 @@ "version": "file:experimental/examples/logs", "requires": { "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "0.49.0", - "@opentelemetry/sdk-logs": "0.49.0", + "@opentelemetry/api-logs": "0.49.1", + "@opentelemetry/sdk-logs": "0.49.1", "@types/node": "18.6.5", "ts-node": "^10.9.1" }, @@ -55722,13 +55722,13 @@ "@opencensus/instrumentation-http": "0.1.0", "@opencensus/nodejs-base": "0.1.0", "@opentelemetry/api": "1.8.0", - "@opentelemetry/exporter-prometheus": "0.49.0", - "@opentelemetry/exporter-trace-otlp-grpc": "0.49.0", + "@opentelemetry/exporter-prometheus": "0.49.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.49.1", "@opentelemetry/resources": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-node": "1.22.0", "@opentelemetry/semantic-conventions": "1.22.0", - "@opentelemetry/shim-opencensus": "0.49.0" + "@opentelemetry/shim-opencensus": "0.49.1" } }, "opentracing": { @@ -56544,7 +56544,7 @@ "version": "file:experimental/examples/prometheus", "requires": { "@opentelemetry/api": "^1.3.0", - "@opentelemetry/exporter-prometheus": "0.49.0", + "@opentelemetry/exporter-prometheus": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0" } }, @@ -60266,13 +60266,13 @@ "@opentelemetry/api": "^1.3.0", "@opentelemetry/context-zone": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-metrics-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", - "@opentelemetry/exporter-trace-otlp-proto": "0.49.0", + "@opentelemetry/exporter-metrics-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-fetch": "0.49.0", - "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-fetch": "0.49.1", + "@opentelemetry/instrumentation-xml-http-request": "0.49.1", "@opentelemetry/propagator-b3": "1.22.0", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", diff --git a/selenium-tests/package.json b/selenium-tests/package.json index fedf9f94b0..7f5ea36592 100644 --- a/selenium-tests/package.json +++ b/selenium-tests/package.json @@ -1,6 +1,6 @@ { "name": "@opentelemetry/selenium-tests", - "version": "1.23.0", + "version": "1.23.1", "private": true, "description": "OpenTelemetry Selenium Tests", "main": "index.js", @@ -58,11 +58,11 @@ "dependencies": { "@opentelemetry/context-zone-peer-dep": "1.22.0", "@opentelemetry/core": "1.22.0", - "@opentelemetry/exporter-trace-otlp-http": "0.49.0", + "@opentelemetry/exporter-trace-otlp-http": "0.49.1", "@opentelemetry/exporter-zipkin": "1.22.0", - "@opentelemetry/instrumentation": "0.49.0", - "@opentelemetry/instrumentation-fetch": "0.49.0", - "@opentelemetry/instrumentation-xml-http-request": "0.49.0", + "@opentelemetry/instrumentation": "0.49.1", + "@opentelemetry/instrumentation-fetch": "0.49.1", + "@opentelemetry/instrumentation-xml-http-request": "0.49.1", "@opentelemetry/sdk-metrics": "1.22.0", "@opentelemetry/sdk-trace-base": "1.22.0", "@opentelemetry/sdk-trace-web": "1.22.0", From 75bd7233ea1140cb5c185e6e50aec16485df6601 Mon Sep 17 00:00:00 2001 From: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> Date: Wed, 6 Mar 2024 03:26:39 -0800 Subject: [PATCH 08/10] fix: ConsoleMetricExporter Should Not Export Shallowly (#4522) * fix: (ConsoleMetricExporter): Increase console log depth to get useful information from metrics. * update: add contribution to changelog. * Update CHANGELOG.md --- CHANGELOG.md | 2 ++ .../sdk-metrics/src/export/ConsoleMetricExporter.ts | 13 ++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52e776705e..f2980539eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/ ### :bug: (Bug Fix) +* fix(sdk-metrics): increase the depth of the output to the console such that objects in the metric are printed fully to the console [#4522](https://github.com/open-telemetry/opentelemetry-js/pull/4522) @JacksonWeber + ### :books: (Refine Doc) ### :house: (Internal) diff --git a/packages/sdk-metrics/src/export/ConsoleMetricExporter.ts b/packages/sdk-metrics/src/export/ConsoleMetricExporter.ts index 36c8b48806..62973d8805 100644 --- a/packages/sdk-metrics/src/export/ConsoleMetricExporter.ts +++ b/packages/sdk-metrics/src/export/ConsoleMetricExporter.ts @@ -71,11 +71,14 @@ export class ConsoleMetricExporter implements PushMetricExporter { ): void { for (const scopeMetrics of metrics.scopeMetrics) { for (const metric of scopeMetrics.metrics) { - console.dir({ - descriptor: metric.descriptor, - dataPointType: metric.dataPointType, - dataPoints: metric.dataPoints, - }); + console.dir( + { + descriptor: metric.descriptor, + dataPointType: metric.dataPointType, + dataPoints: metric.dataPoints, + }, + { depth: null } + ); } } From 5a033e50b3eeea014a1ab4ca8b09d512f0029e20 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Wed, 6 Mar 2024 12:45:22 +0100 Subject: [PATCH 09/10] fix(exporter-*-otlp-grpc)!: lazy load gRPC (#4432) * fix(exporter-*-otlp-grpc)!: lazy load gRPC --- experimental/CHANGELOG.md | 13 + .../src/OTLPLogExporter.ts | 32 +- .../test/OTLPLogExporter.test.ts | 37 ++- .../src/OTLPTraceExporter.ts | 32 +- .../test/OTLPTraceExporter.test.ts | 37 ++- .../src/OTLPMetricExporter.ts | 30 +- .../test/OTLPMetricExporter.test.ts | 58 ++-- .../src/LogsExportServiceClient.ts | 53 --- .../src/MetricsExportServiceClient.ts | 56 ---- .../src/OTLPGRPCExporterNodeBase.ts | 151 +++++---- .../src/TraceExportServiceClient.ts | 56 ---- .../src/create-service-client-constructor.ts | 51 +++ .../src/export-response.ts | 27 ++ .../src/exporter-transport.ts | 22 ++ .../src/grpc-exporter-transport.ts | 173 ++++++++++ .../otlp-grpc-exporter-base/src/index.ts | 14 +- .../src/serializers.ts | 88 +++++ .../otlp-grpc-exporter-base/src/types.ts | 27 +- .../otlp-grpc-exporter-base/src/util.ts | 176 +++------- .../test/OTLPGRPCExporterNodeBase.test.ts | 153 ++++++--- .../test/grpc-exporter-transport.test.ts | 311 ++++++++++++++++++ .../otlp-grpc-exporter-base/test/util.test.ts | 39 ++- 22 files changed, 1064 insertions(+), 572 deletions(-) delete mode 100644 experimental/packages/otlp-grpc-exporter-base/src/LogsExportServiceClient.ts delete mode 100644 experimental/packages/otlp-grpc-exporter-base/src/MetricsExportServiceClient.ts delete mode 100644 experimental/packages/otlp-grpc-exporter-base/src/TraceExportServiceClient.ts create mode 100644 experimental/packages/otlp-grpc-exporter-base/src/create-service-client-constructor.ts create mode 100644 experimental/packages/otlp-grpc-exporter-base/src/export-response.ts create mode 100644 experimental/packages/otlp-grpc-exporter-base/src/exporter-transport.ts create mode 100644 experimental/packages/otlp-grpc-exporter-base/src/grpc-exporter-transport.ts create mode 100644 experimental/packages/otlp-grpc-exporter-base/src/serializers.ts create mode 100644 experimental/packages/otlp-grpc-exporter-base/test/grpc-exporter-transport.test.ts diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 51e7e58217..c437d9eec6 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -59,6 +59,19 @@ All notable changes to experimental packages in this project will be documented * This breaking change only affects users that are using the *experimental* `@opentelemetry/instrumentation/hook.mjs` loader hook AND Node.js 18.19 or later: * This reverts back to an older version of `import-in-the-middle` due to * This version does not support Node.js 18.19 or later +* fix(exporter-*-otlp-grpc)!: lazy load gRPC to improve compatibility with `@opentelemetry/instrumenation-grpc` [#4432](https://github.com/open-telemetry/opentelemetry-js/pull/4432) @pichlermarc + * Fixes a bug where requiring up the gRPC exporter before enabling the instrumentation from `@opentelemetry/instrumentation-grpc` would lead to missing telemetry + * Breaking changes, removes several functions and properties that were used internally and were not intended for end-users + * `getServiceClientType()` + * this returned a static enum value that would denote the export type (`SPAN`, `METRICS`, `LOGS`) + * `getServiceProtoPath()` + * this returned a static enum value that would correspond to the gRPC service path + * `metadata` + * was used internally to access metadata, but as a side effect allowed end-users to modify metadata on runtime. + * `serviceClient` + * was used internally to keep track of the service client used by the exporter, as a side effect it allowed end-users to modify the gRPC service client that was used + * `compression` + * was used internally to keep track of the compression to use but was unintentionally exposed to the users. It allowed to read and write the value, writing, however, would have no effect. ### :bug: (Bug Fix) diff --git a/experimental/packages/exporter-logs-otlp-grpc/src/OTLPLogExporter.ts b/experimental/packages/exporter-logs-otlp-grpc/src/OTLPLogExporter.ts index 19b747fca7..b59a177b22 100644 --- a/experimental/packages/exporter-logs-otlp-grpc/src/OTLPLogExporter.ts +++ b/experimental/packages/exporter-logs-otlp-grpc/src/OTLPLogExporter.ts @@ -16,17 +16,17 @@ import { LogRecordExporter, ReadableLogRecord } from '@opentelemetry/sdk-logs'; import { baggageUtils, getEnv } from '@opentelemetry/core'; -import { Metadata } from '@grpc/grpc-js'; import { OTLPGRPCExporterConfigNode, OTLPGRPCExporterNodeBase, - ServiceClientType, validateAndNormalizeUrl, DEFAULT_COLLECTOR_URL, + LogsSerializer, } from '@opentelemetry/otlp-grpc-exporter-base'; import { createExportLogsServiceRequest, IExportLogsServiceRequest, + IExportLogsServiceResponse, } from '@opentelemetry/otlp-transformer'; import { VERSION } from './version'; @@ -38,21 +38,27 @@ const USER_AGENT = { * OTLP Logs Exporter for Node */ export class OTLPLogExporter - extends OTLPGRPCExporterNodeBase + extends OTLPGRPCExporterNodeBase< + ReadableLogRecord, + IExportLogsServiceRequest, + IExportLogsServiceResponse + > implements LogRecordExporter { constructor(config: OTLPGRPCExporterConfigNode = {}) { - super(config); - const headers = { + const signalSpecificMetadata = { ...USER_AGENT, ...baggageUtils.parseKeyPairsIntoRecord( getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS ), }; - this.metadata ||= new Metadata(); - for (const [k, v] of Object.entries(headers)) { - this.metadata.set(k, v); - } + super( + config, + signalSpecificMetadata, + 'LogsExportService', + '/opentelemetry.proto.collector.logs.v1.LogsService/Export', + LogsSerializer + ); } convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest { @@ -63,14 +69,6 @@ export class OTLPLogExporter return validateAndNormalizeUrl(this.getUrlFromConfig(config)); } - getServiceClientType() { - return ServiceClientType.LOGS; - } - - getServiceProtoPath(): string { - return 'opentelemetry/proto/collector/logs/v1/logs_service.proto'; - } - getUrlFromConfig(config: OTLPGRPCExporterConfigNode): string { if (typeof config.url === 'string') { return config.url; diff --git a/experimental/packages/exporter-logs-otlp-grpc/test/OTLPLogExporter.test.ts b/experimental/packages/exporter-logs-otlp-grpc/test/OTLPLogExporter.test.ts index bb57df4a4e..e48a1cef68 100644 --- a/experimental/packages/exporter-logs-otlp-grpc/test/OTLPLogExporter.test.ts +++ b/experimental/packages/exporter-logs-otlp-grpc/test/OTLPLogExporter.test.ts @@ -32,7 +32,6 @@ import { } from './logsHelper'; import * as core from '@opentelemetry/core'; import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base'; -import { GrpcCompressionAlgorithm } from '@opentelemetry/otlp-grpc-exporter-base'; import { IExportLogsServiceRequest, IResourceLogs, @@ -292,7 +291,7 @@ const testCollectorExporter = (params: TestParams) => { }); assert.strictEqual( collectorExporter.compression, - GrpcCompressionAlgorithm.GZIP + CompressionAlgorithm.GZIP ); delete envSource.OTEL_EXPORTER_OTLP_COMPRESSION; }); @@ -320,44 +319,54 @@ describe('OTLPLogExporter - node (getDefaultUrl)', () => { describe('when configuring via environment', () => { const envSource = process.env; + + afterEach(function () { + // Ensure we don't pollute other tests if assertions fail + delete envSource.OTEL_EXPORTER_OTLP_ENDPOINT; + delete envSource.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT; + delete envSource.OTEL_EXPORTER_OTLP_HEADERS; + delete envSource.OTEL_EXPORTER_OTLP_LOGS_HEADERS; + sinon.restore(); + }); + it('should use url defined in env', () => { envSource.OTEL_EXPORTER_OTLP_ENDPOINT = 'http://foo.bar'; const collectorExporter = new OTLPLogExporter(); assert.strictEqual(collectorExporter.url, 'foo.bar'); - envSource.OTEL_EXPORTER_OTLP_ENDPOINT = ''; }); it('should override global exporter url with signal url defined in env', () => { envSource.OTEL_EXPORTER_OTLP_ENDPOINT = 'http://foo.bar'; envSource.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = 'http://foo.logs'; const collectorExporter = new OTLPLogExporter(); assert.strictEqual(collectorExporter.url, 'foo.logs'); - envSource.OTEL_EXPORTER_OTLP_ENDPOINT = ''; - envSource.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = ''; }); it('should include user-agent header by default', () => { const collectorExporter = new OTLPLogExporter(); - assert.deepStrictEqual(collectorExporter.metadata?.get('User-Agent'), [ + const actualMetadata = + collectorExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('User-Agent'), [ `OTel-OTLP-Exporter-JavaScript/${VERSION}`, ]); }); it('should use headers defined via env', () => { envSource.OTEL_EXPORTER_OTLP_HEADERS = 'foo=bar'; const collectorExporter = new OTLPLogExporter(); - assert.deepStrictEqual(collectorExporter.metadata?.get('foo'), ['bar']); - envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; + const actualMetadata = + collectorExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['bar']); }); - it('should override global headers config with signal headers defined via env', () => { + it('should not override hard-coded headers config with headers defined via env', () => { const metadata = new grpc.Metadata(); metadata.set('foo', 'bar'); metadata.set('goo', 'lol'); envSource.OTEL_EXPORTER_OTLP_HEADERS = 'foo=jar,bar=foo'; envSource.OTEL_EXPORTER_OTLP_LOGS_HEADERS = 'foo=boo'; const collectorExporter = new OTLPLogExporter({ metadata }); - assert.deepStrictEqual(collectorExporter.metadata?.get('foo'), ['boo']); - assert.deepStrictEqual(collectorExporter.metadata?.get('bar'), ['foo']); - assert.deepStrictEqual(collectorExporter.metadata?.get('goo'), ['lol']); - envSource.OTEL_EXPORTER_OTLP_LOGS_HEADERS = ''; - envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; + const actualMetadata = + collectorExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['bar']); + assert.deepStrictEqual(actualMetadata.get('goo'), ['lol']); + assert.deepStrictEqual(actualMetadata.get('bar'), ['foo']); }); }); diff --git a/experimental/packages/exporter-trace-otlp-grpc/src/OTLPTraceExporter.ts b/experimental/packages/exporter-trace-otlp-grpc/src/OTLPTraceExporter.ts index c99826a176..88e55734e6 100644 --- a/experimental/packages/exporter-trace-otlp-grpc/src/OTLPTraceExporter.ts +++ b/experimental/packages/exporter-trace-otlp-grpc/src/OTLPTraceExporter.ts @@ -16,17 +16,17 @@ import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base'; import { baggageUtils, getEnv } from '@opentelemetry/core'; -import { Metadata } from '@grpc/grpc-js'; import { OTLPGRPCExporterConfigNode, OTLPGRPCExporterNodeBase, - ServiceClientType, validateAndNormalizeUrl, DEFAULT_COLLECTOR_URL, + TraceSerializer, } from '@opentelemetry/otlp-grpc-exporter-base'; import { createExportTraceServiceRequest, IExportTraceServiceRequest, + IExportTraceServiceResponse, } from '@opentelemetry/otlp-transformer'; import { VERSION } from './version'; @@ -38,21 +38,27 @@ const USER_AGENT = { * OTLP Trace Exporter for Node */ export class OTLPTraceExporter - extends OTLPGRPCExporterNodeBase + extends OTLPGRPCExporterNodeBase< + ReadableSpan, + IExportTraceServiceRequest, + IExportTraceServiceResponse + > implements SpanExporter { constructor(config: OTLPGRPCExporterConfigNode = {}) { - super(config); - const headers = { + const signalSpecificMetadata = { ...USER_AGENT, ...baggageUtils.parseKeyPairsIntoRecord( getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS ), }; - this.metadata ||= new Metadata(); - for (const [k, v] of Object.entries(headers)) { - this.metadata.set(k, v); - } + super( + config, + signalSpecificMetadata, + 'TraceExportService', + '/opentelemetry.proto.collector.trace.v1.TraceService/Export', + TraceSerializer + ); } convert(spans: ReadableSpan[]): IExportTraceServiceRequest { @@ -63,14 +69,6 @@ export class OTLPTraceExporter return validateAndNormalizeUrl(this.getUrlFromConfig(config)); } - getServiceClientType() { - return ServiceClientType.SPANS; - } - - getServiceProtoPath(): string { - return 'opentelemetry/proto/collector/trace/v1/trace_service.proto'; - } - getUrlFromConfig(config: OTLPGRPCExporterConfigNode): string { if (typeof config.url === 'string') { return config.url; diff --git a/experimental/packages/exporter-trace-otlp-grpc/test/OTLPTraceExporter.test.ts b/experimental/packages/exporter-trace-otlp-grpc/test/OTLPTraceExporter.test.ts index f22fc95d2a..9a3a13ce32 100644 --- a/experimental/packages/exporter-trace-otlp-grpc/test/OTLPTraceExporter.test.ts +++ b/experimental/packages/exporter-trace-otlp-grpc/test/OTLPTraceExporter.test.ts @@ -37,7 +37,6 @@ import { } from './traceHelper'; import * as core from '@opentelemetry/core'; import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base'; -import { GrpcCompressionAlgorithm } from '@opentelemetry/otlp-grpc-exporter-base'; import { IExportTraceServiceRequest, IResourceSpans, @@ -302,7 +301,7 @@ const testCollectorExporter = (params: TestParams) => { }); assert.strictEqual( collectorExporter.compression, - GrpcCompressionAlgorithm.GZIP + CompressionAlgorithm.GZIP ); delete envSource.OTEL_EXPORTER_OTLP_COMPRESSION; }); @@ -330,44 +329,54 @@ describe('OTLPTraceExporter - node (getDefaultUrl)', () => { describe('when configuring via environment', () => { const envSource = process.env; + + afterEach(function () { + // Ensure we don't pollute other tests if assertions fail + delete envSource.OTEL_EXPORTER_OTLP_ENDPOINT; + delete envSource.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT; + delete envSource.OTEL_EXPORTER_OTLP_HEADERS; + delete envSource.OTEL_EXPORTER_OTLP_TRACES_HEADERS; + sinon.restore(); + }); + it('should use url defined in env', () => { envSource.OTEL_EXPORTER_OTLP_ENDPOINT = 'http://foo.bar'; const collectorExporter = new OTLPTraceExporter(); assert.strictEqual(collectorExporter.url, 'foo.bar'); - envSource.OTEL_EXPORTER_OTLP_ENDPOINT = ''; }); it('should override global exporter url with signal url defined in env', () => { envSource.OTEL_EXPORTER_OTLP_ENDPOINT = 'http://foo.bar'; envSource.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = 'http://foo.traces'; const collectorExporter = new OTLPTraceExporter(); assert.strictEqual(collectorExporter.url, 'foo.traces'); - envSource.OTEL_EXPORTER_OTLP_ENDPOINT = ''; - envSource.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = ''; }); it('should use headers defined via env', () => { envSource.OTEL_EXPORTER_OTLP_HEADERS = 'foo=bar'; const collectorExporter = new OTLPTraceExporter(); - assert.deepStrictEqual(collectorExporter.metadata?.get('foo'), ['bar']); - envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; + const actualMetadata = + collectorExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['bar']); }); it('should include user agent in header', () => { const collectorExporter = new OTLPTraceExporter(); - assert.deepStrictEqual(collectorExporter.metadata?.get('User-Agent'), [ + const actualMetadata = + collectorExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('User-Agent'), [ `OTel-OTLP-Exporter-JavaScript/${VERSION}`, ]); }); - it('should override global headers config with signal headers defined via env', () => { + it('should not override hard-coded headers config with headers defined via env', () => { const metadata = new grpc.Metadata(); metadata.set('foo', 'bar'); metadata.set('goo', 'lol'); envSource.OTEL_EXPORTER_OTLP_HEADERS = 'foo=jar,bar=foo'; envSource.OTEL_EXPORTER_OTLP_TRACES_HEADERS = 'foo=boo'; const collectorExporter = new OTLPTraceExporter({ metadata }); - assert.deepStrictEqual(collectorExporter.metadata?.get('foo'), ['boo']); - assert.deepStrictEqual(collectorExporter.metadata?.get('bar'), ['foo']); - assert.deepStrictEqual(collectorExporter.metadata?.get('goo'), ['lol']); - envSource.OTEL_EXPORTER_OTLP_TRACES_HEADERS = ''; - envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; + const actualMetadata = + collectorExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['bar']); + assert.deepStrictEqual(actualMetadata.get('goo'), ['lol']); + assert.deepStrictEqual(actualMetadata.get('bar'), ['foo']); }); }); diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/OTLPMetricExporter.ts b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/OTLPMetricExporter.ts index b1b1227275..77d68d60a6 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/OTLPMetricExporter.ts +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/OTLPMetricExporter.ts @@ -22,15 +22,15 @@ import { ResourceMetrics } from '@opentelemetry/sdk-metrics'; import { OTLPGRPCExporterConfigNode, OTLPGRPCExporterNodeBase, - ServiceClientType, validateAndNormalizeUrl, DEFAULT_COLLECTOR_URL, + MetricsSerializer, } from '@opentelemetry/otlp-grpc-exporter-base'; import { baggageUtils, getEnv } from '@opentelemetry/core'; -import { Metadata } from '@grpc/grpc-js'; import { createExportMetricsServiceRequest, IExportMetricsServiceRequest, + IExportMetricsServiceResponse, } from '@opentelemetry/otlp-transformer'; import { VERSION } from './version'; @@ -40,30 +40,24 @@ const USER_AGENT = { class OTLPMetricExporterProxy extends OTLPGRPCExporterNodeBase< ResourceMetrics, - IExportMetricsServiceRequest + IExportMetricsServiceRequest, + IExportMetricsServiceResponse > { constructor(config?: OTLPGRPCExporterConfigNode & OTLPMetricExporterOptions) { - super(config); - const headers = { + const signalSpecificMetadata = { ...USER_AGENT, ...baggageUtils.parseKeyPairsIntoRecord( getEnv().OTEL_EXPORTER_OTLP_METRICS_HEADERS ), ...config?.headers, }; - - this.metadata ||= new Metadata(); - for (const [k, v] of Object.entries(headers)) { - this.metadata.set(k, v); - } - } - - getServiceProtoPath(): string { - return 'opentelemetry/proto/collector/metrics/v1/metrics_service.proto'; - } - - getServiceClientType(): ServiceClientType { - return ServiceClientType.METRICS; + super( + config, + signalSpecificMetadata, + 'MetricsExportService', + '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export', + MetricsSerializer + ); } getDefaultUrl(config: OTLPGRPCExporterConfigNode): string { diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/test/OTLPMetricExporter.test.ts b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/test/OTLPMetricExporter.test.ts index 79a6125a09..3ed034bde8 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/test/OTLPMetricExporter.test.ts +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/test/OTLPMetricExporter.test.ts @@ -307,6 +307,15 @@ describe('OTLPMetricExporter - node (getDefaultUrl)', () => { }); describe('when configuring via environment', () => { + afterEach(function () { + // Ensure we don't pollute other tests if assertions fail + delete envSource.OTEL_EXPORTER_OTLP_ENDPOINT; + delete envSource.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT; + delete envSource.OTEL_EXPORTER_OTLP_HEADERS; + delete envSource.OTEL_EXPORTER_OTLP_METRICS_HEADERS; + sinon.restore(); + }); + const envSource = process.env; it('should use url defined in env', () => { envSource.OTEL_EXPORTER_OTLP_ENDPOINT = 'http://foo.bar'; @@ -334,20 +343,20 @@ describe('when configuring via environment', () => { it('should use headers defined via env', () => { envSource.OTEL_EXPORTER_OTLP_HEADERS = 'foo=bar'; const collectorExporter = new OTLPMetricExporter(); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('foo'), - ['bar'] - ); + const actualMetadata = + collectorExporter._otlpExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['bar']); envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; }); it('should include user agent in header', () => { const collectorExporter = new OTLPMetricExporter(); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('User-Agent'), - [`OTel-OTLP-Exporter-JavaScript/${VERSION}`] - ); + const actualMetadata = + collectorExporter._otlpExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('User-Agent'), [ + `OTel-OTLP-Exporter-JavaScript/${VERSION}`, + ]); }); - it('should override global headers config with signal headers defined via env', () => { + it('should not override hard-coded headers config with headers defined via env', () => { const metadata = new grpc.Metadata(); metadata.set('foo', 'bar'); metadata.set('goo', 'lol'); @@ -357,21 +366,15 @@ describe('when configuring via environment', () => { metadata, temporalityPreference: AggregationTemporalityPreference.CUMULATIVE, }); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('foo'), - ['boo'] - ); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('bar'), - ['foo'] - ); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('goo'), - ['lol'] - ); + const actualMetadata = + collectorExporter._otlpExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['bar']); + assert.deepStrictEqual(actualMetadata.get('bar'), ['foo']); + assert.deepStrictEqual(actualMetadata.get('goo'), ['lol']); envSource.OTEL_EXPORTER_OTLP_METRICS_HEADERS = ''; envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; }); + it('should override headers defined via env with headers defined in constructor', () => { envSource.OTEL_EXPORTER_OTLP_HEADERS = 'foo=bar,bar=foo'; const collectorExporter = new OTLPMetricExporter({ @@ -379,14 +382,11 @@ describe('when configuring via environment', () => { foo: 'constructor', }, }); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('foo'), - ['constructor'] - ); - assert.deepStrictEqual( - collectorExporter._otlpExporter.metadata?.get('bar'), - ['foo'] - ); + + const actualMetadata = + collectorExporter._otlpExporter['_transport']['_parameters'].metadata(); + assert.deepStrictEqual(actualMetadata.get('foo'), ['constructor']); + assert.deepStrictEqual(actualMetadata.get('bar'), ['foo']); envSource.OTEL_EXPORTER_OTLP_HEADERS = ''; }); }); diff --git a/experimental/packages/otlp-grpc-exporter-base/src/LogsExportServiceClient.ts b/experimental/packages/otlp-grpc-exporter-base/src/LogsExportServiceClient.ts deleted file mode 100644 index b867743cea..0000000000 --- a/experimental/packages/otlp-grpc-exporter-base/src/LogsExportServiceClient.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 root from './generated/root'; -import * as grpc from '@grpc/grpc-js'; -import { - IExportLogsServiceRequest, - IExportLogsServiceResponse, -} from '@opentelemetry/otlp-transformer'; -import { ExportType } from './internal-types'; - -const responseType = root.opentelemetry.proto.collector.logs.v1 - .ExportLogsServiceResponse as ExportType; - -const requestType = root.opentelemetry.proto.collector.logs.v1 - .ExportLogsServiceRequest as ExportType; - -const logsServiceDefinition = { - export: { - path: '/opentelemetry.proto.collector.logs.v1.LogsService/Export', - requestStream: false, - responseStream: false, - requestSerialize: (arg: IExportLogsServiceRequest) => { - return Buffer.from(requestType.encode(arg).finish()); - }, - requestDeserialize: (arg: Buffer) => { - return requestType.decode(arg); - }, - responseSerialize: (arg: IExportLogsServiceResponse) => { - return Buffer.from(responseType.encode(arg).finish()); - }, - responseDeserialize: (arg: Buffer) => { - return responseType.decode(arg); - }, - }, -}; - -// Creates a new instance of a gRPC service client for OTLP logs -export const LogsExportServiceClient: grpc.ServiceClientConstructor = - grpc.makeGenericClientConstructor(logsServiceDefinition, 'LogsExportService'); diff --git a/experimental/packages/otlp-grpc-exporter-base/src/MetricsExportServiceClient.ts b/experimental/packages/otlp-grpc-exporter-base/src/MetricsExportServiceClient.ts deleted file mode 100644 index 7f81be6087..0000000000 --- a/experimental/packages/otlp-grpc-exporter-base/src/MetricsExportServiceClient.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 root from './generated/root'; -import * as grpc from '@grpc/grpc-js'; -import { - IExportMetricsServiceRequest, - IExportMetricsServiceResponse, -} from '@opentelemetry/otlp-transformer'; -import { ExportType } from './internal-types'; - -const responseType = root.opentelemetry.proto.collector.metrics.v1 - .ExportMetricsServiceResponse as ExportType; - -const requestType = root.opentelemetry.proto.collector.metrics.v1 - .ExportMetricsServiceRequest as ExportType; - -const metricsServiceDefinition = { - export: { - path: '/opentelemetry.proto.collector.metrics.v1.MetricsService/Export', - requestStream: false, - responseStream: false, - requestSerialize: (arg: IExportMetricsServiceRequest) => { - return Buffer.from(requestType.encode(arg).finish()); - }, - requestDeserialize: (arg: Buffer) => { - return requestType.decode(arg); - }, - responseSerialize: (arg: IExportMetricsServiceResponse) => { - return Buffer.from(responseType.encode(arg).finish()); - }, - responseDeserialize: (arg: Buffer) => { - return responseType.decode(arg); - }, - }, -}; - -// Creates a new instance of a gRPC service client for OTLP metrics -export const MetricExportServiceClient: grpc.ServiceClientConstructor = - grpc.makeGenericClientConstructor( - metricsServiceDefinition, - 'MetricsExportService' - ); diff --git a/experimental/packages/otlp-grpc-exporter-base/src/OTLPGRPCExporterNodeBase.ts b/experimental/packages/otlp-grpc-exporter-base/src/OTLPGRPCExporterNodeBase.ts index b4f06472c6..cfa7fba3d7 100644 --- a/experimental/packages/otlp-grpc-exporter-base/src/OTLPGRPCExporterNodeBase.ts +++ b/experimental/packages/otlp-grpc-exporter-base/src/OTLPGRPCExporterNodeBase.ts @@ -15,19 +15,20 @@ */ import { diag } from '@opentelemetry/api'; -import { Metadata } from '@grpc/grpc-js'; -import { - OTLPGRPCExporterConfigNode, - GRPCQueueItem, - ServiceClientType, -} from './types'; -import { ServiceClient } from './types'; -import { getEnv, baggageUtils } from '@opentelemetry/core'; -import { configureCompression, GrpcCompressionAlgorithm } from './util'; +import { GRPCQueueItem, OTLPGRPCExporterConfigNode } from './types'; +import { baggageUtils, getEnv } from '@opentelemetry/core'; import { + CompressionAlgorithm, OTLPExporterBase, OTLPExporterError, } from '@opentelemetry/otlp-exporter-base'; +import { + createEmptyMetadata, + GrpcExporterTransport, +} from './grpc-exporter-transport'; +import { configureCompression, configureCredentials } from './util'; +import { ISerializer } from './serializers'; +import { IExporterTransport } from './exporter-transport'; /** * OTLP Exporter abstract base class @@ -35,59 +36,84 @@ import { export abstract class OTLPGRPCExporterNodeBase< ExportItem, ServiceRequest, + ServiceResponse, > extends OTLPExporterBase< OTLPGRPCExporterConfigNode, ExportItem, ServiceRequest > { grpcQueue: GRPCQueueItem[] = []; - metadata?: Metadata; - serviceClient?: ServiceClient = undefined; - private _send!: Function; - compression: GrpcCompressionAlgorithm; + compression: CompressionAlgorithm; + private _transport: IExporterTransport; + private _serializer: ISerializer; - constructor(config: OTLPGRPCExporterConfigNode = {}) { + constructor( + config: OTLPGRPCExporterConfigNode = {}, + signalSpecificMetadata: Record, + grpcName: string, + grpcPath: string, + serializer: ISerializer + ) { super(config); + this._serializer = serializer; if (config.headers) { diag.warn('Headers cannot be set when using grpc'); } - const headers = baggageUtils.parseKeyPairsIntoRecord( + const nonSignalSpecificMetadata = baggageUtils.parseKeyPairsIntoRecord( getEnv().OTEL_EXPORTER_OTLP_HEADERS ); - this.metadata = config.metadata || new Metadata(); - for (const [k, v] of Object.entries(headers)) { - this.metadata.set(k, v); + const rawMetadata = Object.assign( + {}, + nonSignalSpecificMetadata, + signalSpecificMetadata + ); + + let credentialProvider = () => { + return configureCredentials(undefined, this.getUrlFromConfig(config)); + }; + + if (config.credentials != null) { + const credentials = config.credentials; + credentialProvider = () => { + return credentials; + }; } - this.compression = configureCompression(config.compression); - } - private _sendPromise( - objects: ExportItem[], - onSuccess: () => void, - onError: (error: OTLPExporterError) => void - ): void { - const promise = new Promise((resolve, reject) => { - this._send(this, objects, resolve, reject); - }).then(onSuccess, onError); + // Ensure we don't modify the original. + const configMetadata = config.metadata?.clone(); + const metadataProvider = () => { + const metadata = configMetadata ?? createEmptyMetadata(); + for (const [key, value] of Object.entries(rawMetadata)) { + // only override with env var data if the key has no values. + // not using Metadata.merge() as it will keep both values. + if (metadata.get(key).length < 1) { + metadata.set(key, value); + } + } - this._sendingPromises.push(promise); - const popPromise = () => { - const index = this._sendingPromises.indexOf(promise); - this._sendingPromises.splice(index, 1); + return metadata; }; - promise.then(popPromise, popPromise); - } - onInit(config: OTLPGRPCExporterConfigNode): void { - // defer to next tick and lazy load to avoid loading grpc too early - // and making this impossible to be instrumented - setImmediate(() => { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { onInit } = require('./util'); - onInit(this, config); + this.compression = configureCompression(config.compression); + this._transport = new GrpcExporterTransport({ + address: this.getDefaultUrl(config), + compression: this.compression, + credentials: credentialProvider, + grpcName: grpcName, + grpcPath: grpcPath, + metadata: metadataProvider, + timeoutMillis: this.timeoutMillis, }); } + onInit() { + // Intentionally left empty; nothing to do. + } + + override onShutdown() { + this._transport.shutdown(); + } + send( objects: ExportItem[], onSuccess: () => void, @@ -97,28 +123,33 @@ export abstract class OTLPGRPCExporterNodeBase< diag.debug('Shutdown already started. Cannot send objects'); return; } - if (!this._send) { - // defer to next tick and lazy load to avoid loading grpc too early - // and making this impossible to be instrumented - setImmediate(() => { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { send } = require('./util'); - this._send = send; - - this._sendPromise(objects, onSuccess, onError); - }); - } else { - this._sendPromise(objects, onSuccess, onError); - } - } - onShutdown(): void { - if (this.serviceClient) { - this.serviceClient.close(); + const converted = this.convert(objects); + const data = this._serializer.serializeRequest(converted); + + if (data == null) { + onError(new Error('Could not serialize message')); + return; } + + const promise = this._transport.send(data).then(response => { + if (response.status === 'success') { + onSuccess(); + return; + } + if (response.status === 'failure' && response.error) { + onError(response.error); + } + onError(new OTLPExporterError('Export failed with unknown error')); + }, onError); + + this._sendingPromises.push(promise); + const popPromise = () => { + const index = this._sendingPromises.indexOf(promise); + this._sendingPromises.splice(index, 1); + }; + promise.then(popPromise, popPromise); } - abstract getServiceProtoPath(): string; - abstract getServiceClientType(): ServiceClientType; abstract getUrlFromConfig(config: OTLPGRPCExporterConfigNode): string; } diff --git a/experimental/packages/otlp-grpc-exporter-base/src/TraceExportServiceClient.ts b/experimental/packages/otlp-grpc-exporter-base/src/TraceExportServiceClient.ts deleted file mode 100644 index d332e4f4da..0000000000 --- a/experimental/packages/otlp-grpc-exporter-base/src/TraceExportServiceClient.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 root from './generated/root'; -import * as grpc from '@grpc/grpc-js'; -import { - IExportTraceServiceRequest, - IExportTraceServiceResponse, -} from '@opentelemetry/otlp-transformer'; -import { ExportType } from './internal-types'; - -const responseType = root.opentelemetry.proto.collector.trace.v1 - .ExportTraceServiceResponse as ExportType; - -const requestType = root.opentelemetry.proto.collector.trace.v1 - .ExportTraceServiceRequest as ExportType; - -const traceServiceDefinition = { - export: { - path: '/opentelemetry.proto.collector.trace.v1.TraceService/Export', - requestStream: false, - responseStream: false, - requestSerialize: (arg: IExportTraceServiceRequest) => { - return Buffer.from(requestType.encode(arg).finish()); - }, - requestDeserialize: (arg: Buffer) => { - return requestType.decode(arg); - }, - responseSerialize: (arg: IExportTraceServiceResponse) => { - return Buffer.from(responseType.encode(arg).finish()); - }, - responseDeserialize: (arg: Buffer) => { - return responseType.decode(arg); - }, - }, -}; - -// Creates a new instance of a gRPC service client for exporting OTLP traces -export const TraceExportServiceClient: grpc.ServiceClientConstructor = - grpc.makeGenericClientConstructor( - traceServiceDefinition, - 'TraceExportService' - ); diff --git a/experimental/packages/otlp-grpc-exporter-base/src/create-service-client-constructor.ts b/experimental/packages/otlp-grpc-exporter-base/src/create-service-client-constructor.ts new file mode 100644 index 0000000000..9447e7b786 --- /dev/null +++ b/experimental/packages/otlp-grpc-exporter-base/src/create-service-client-constructor.ts @@ -0,0 +1,51 @@ +/* + * 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 grpc from '@grpc/grpc-js'; + +/** + * Creates a unary service client constructor that, when instantiated, does not serialize/deserialize anything. + * Allows for passing in {@link Buffer} directly, serialization can be handled via protobufjs or custom implementations. + * + * @param path service path + * @param name service name + */ +export function createServiceClientConstructor( + path: string, + name: string +): grpc.ServiceClientConstructor { + const serviceDefinition = { + export: { + path: path, + requestStream: false, + responseStream: false, + requestSerialize: (arg: Buffer) => { + return arg; + }, + requestDeserialize: (arg: Buffer) => { + return arg; + }, + responseSerialize: (arg: Buffer) => { + return arg; + }, + responseDeserialize: (arg: Buffer) => { + return arg; + }, + }, + }; + + return grpc.makeGenericClientConstructor(serviceDefinition, name); +} diff --git a/experimental/packages/otlp-grpc-exporter-base/src/export-response.ts b/experimental/packages/otlp-grpc-exporter-base/src/export-response.ts new file mode 100644 index 0000000000..c13af631e1 --- /dev/null +++ b/experimental/packages/otlp-grpc-exporter-base/src/export-response.ts @@ -0,0 +1,27 @@ +/* + * 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 interface ExportResponseSuccess { + status: 'success'; + data?: Uint8Array; +} + +export interface ExportResponseFailure { + status: 'failure'; + error: Error; +} + +export type ExportResponse = ExportResponseSuccess | ExportResponseFailure; diff --git a/experimental/packages/otlp-grpc-exporter-base/src/exporter-transport.ts b/experimental/packages/otlp-grpc-exporter-base/src/exporter-transport.ts new file mode 100644 index 0000000000..bb9deac834 --- /dev/null +++ b/experimental/packages/otlp-grpc-exporter-base/src/exporter-transport.ts @@ -0,0 +1,22 @@ +/* + * 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 { ExportResponse } from './export-response'; + +export interface IExporterTransport { + send(data: Uint8Array): Promise; + shutdown(): void; +} diff --git a/experimental/packages/otlp-grpc-exporter-base/src/grpc-exporter-transport.ts b/experimental/packages/otlp-grpc-exporter-base/src/grpc-exporter-transport.ts new file mode 100644 index 0000000000..77038648ce --- /dev/null +++ b/experimental/packages/otlp-grpc-exporter-base/src/grpc-exporter-transport.ts @@ -0,0 +1,173 @@ +/* + * 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. + */ + +// NOTE: do not change these type imports to actual imports. Doing so WILL break `@opentelemetry/instrumentation-http`, +// as they'd be imported before the http/https modules can be wrapped. +import type { Metadata, ServiceError, ChannelCredentials } from '@grpc/grpc-js'; +import { ExportResponse } from './export-response'; +import { IExporterTransport } from './exporter-transport'; + +// values taken from '@grpc/grpc-js` so that we don't need to require/import it. +const GRPC_COMPRESSION_NONE = 0; +const GRPC_COMPRESSION_GZIP = 2; + +function toGrpcCompression(compression: 'gzip' | 'none'): number { + return compression === 'gzip' ? GRPC_COMPRESSION_GZIP : GRPC_COMPRESSION_NONE; +} + +export function createInsecureCredentials(): ChannelCredentials { + // Lazy-load so that we don't need to require/import '@grpc/grpc-js' before it can be wrapped by instrumentation. + const { + credentials, + // eslint-disable-next-line @typescript-eslint/no-var-requires + } = require('@grpc/grpc-js'); + return credentials.createInsecure(); +} + +export function createSslCredentials( + rootCert?: Buffer, + privateKey?: Buffer, + certChain?: Buffer +): ChannelCredentials { + // Lazy-load so that we don't need to require/import '@grpc/grpc-js' before it can be wrapped by instrumentation. + const { + credentials, + // eslint-disable-next-line @typescript-eslint/no-var-requires + } = require('@grpc/grpc-js'); + return credentials.createSsl(rootCert, privateKey, certChain); +} + +export function createEmptyMetadata(): Metadata { + // Lazy-load so that we don't need to require/import '@grpc/grpc-js' before it can be wrapped by instrumentation. + const { + Metadata, + // eslint-disable-next-line @typescript-eslint/no-var-requires + } = require('@grpc/grpc-js'); + return new Metadata(); +} + +export interface GrpcExporterTransportParameters { + grpcPath: string; + grpcName: string; + address: string; + /** + * NOTE: Ensure that you're only importing/requiring gRPC inside the function providing the channel credentials, + * otherwise, gRPC and http/https instrumentations may break. + * + * For common cases, you can avoid to import/require gRPC your function by using + * - {@link createSslCredentials} + * - {@link createInsecureCredentials} + */ + credentials: () => ChannelCredentials; + /** + * NOTE: Ensure that you're only importing/requiring gRPC inside the function providing the metadata, + * otherwise, gRPC and http/https instrumentations may break. + * + * To avoid having to import/require gRPC from your function to create a new Metadata object, + * use {@link createEmptyMetadata} + */ + metadata: () => Metadata; + compression: 'gzip' | 'none'; + timeoutMillis: number; +} + +export class GrpcExporterTransport implements IExporterTransport { + private _client?: any; + private _metadata?: Metadata; + + constructor(private _parameters: GrpcExporterTransportParameters) {} + + shutdown() { + this._client?.shutdown(); + } + + send(data: Uint8Array): Promise { + // We need to make a for gRPC + const buffer = Buffer.from(data); + + if (this._client == null) { + // Lazy require to ensure that grpc is not loaded before instrumentations can wrap it + const { + createServiceClientConstructor, + // eslint-disable-next-line @typescript-eslint/no-var-requires + } = require('./create-service-client-constructor'); + + try { + this._metadata = this._parameters.metadata(); + } catch (error) { + return Promise.resolve({ + status: 'failure', + error: error, + }); + } + + const clientConstructor = createServiceClientConstructor( + this._parameters.grpcPath, + this._parameters.grpcName + ); + + try { + this._client = new clientConstructor( + this._parameters.address, + this._parameters.credentials(), + { + 'grpc.default_compression_algorithm': toGrpcCompression( + this._parameters.compression + ), + } + ); + } catch (error) { + return Promise.resolve({ + status: 'failure', + error: error, + }); + } + } + + return new Promise(resolve => { + // this will always be defined + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const deadline = Date.now() + this._parameters.timeoutMillis; + + // this should never happen + if (this._metadata == null) { + return resolve({ + error: new Error('metadata was null'), + status: 'failure', + }); + } + + this._client.export( + buffer, + this._metadata, + { deadline: deadline }, + (err: ServiceError, response: Buffer) => { + if (err) { + resolve({ + status: 'failure', + error: err, + }); + } else { + resolve({ + data: response, + status: 'success', + }); + } + } + ); + }); + } +} diff --git a/experimental/packages/otlp-grpc-exporter-base/src/index.ts b/experimental/packages/otlp-grpc-exporter-base/src/index.ts index 2669033a46..0e7f487e2b 100644 --- a/experimental/packages/otlp-grpc-exporter-base/src/index.ts +++ b/experimental/packages/otlp-grpc-exporter-base/src/index.ts @@ -14,10 +14,12 @@ * limitations under the License. */ -export * from './OTLPGRPCExporterNodeBase'; -export { ServiceClientType, OTLPGRPCExporterConfigNode } from './types'; +export { OTLPGRPCExporterNodeBase } from './OTLPGRPCExporterNodeBase'; +export { OTLPGRPCExporterConfigNode } from './types'; +export { DEFAULT_COLLECTOR_URL, validateAndNormalizeUrl } from './util'; export { - DEFAULT_COLLECTOR_URL, - validateAndNormalizeUrl, - GrpcCompressionAlgorithm, -} from './util'; + MetricsSerializer, + TraceSerializer, + LogsSerializer, + ISerializer, +} from './serializers'; diff --git a/experimental/packages/otlp-grpc-exporter-base/src/serializers.ts b/experimental/packages/otlp-grpc-exporter-base/src/serializers.ts new file mode 100644 index 0000000000..3e8b22f605 --- /dev/null +++ b/experimental/packages/otlp-grpc-exporter-base/src/serializers.ts @@ -0,0 +1,88 @@ +/* + * 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 root from './generated/root'; +import { + IExportLogsServiceRequest, + IExportLogsServiceResponse, + IExportMetricsServiceRequest, + IExportMetricsServiceResponse, + IExportTraceServiceRequest, + IExportTraceServiceResponse, +} from '@opentelemetry/otlp-transformer'; +import { ExportType } from './internal-types'; + +const logsResponseType = root.opentelemetry.proto.collector.logs.v1 + .ExportLogsServiceResponse as ExportType; + +const logsRequestType = root.opentelemetry.proto.collector.logs.v1 + .ExportLogsServiceRequest as ExportType; + +const metricsResponseType = root.opentelemetry.proto.collector.metrics.v1 + .ExportMetricsServiceResponse as ExportType; + +const metricsRequestType = root.opentelemetry.proto.collector.metrics.v1 + .ExportMetricsServiceRequest as ExportType; + +const traceResponseType = root.opentelemetry.proto.collector.trace.v1 + .ExportTraceServiceResponse as ExportType; + +const traceRequestType = root.opentelemetry.proto.collector.trace.v1 + .ExportTraceServiceRequest as ExportType; + +/** + * Serializes and deserializes the OTLP request/response to and from {@link Uint8Array} + */ +export interface ISerializer { + serializeRequest(request: Request): Uint8Array | undefined; + deserializeResponse(data: Uint8Array): Response; +} + +export const LogsSerializer: ISerializer< + IExportLogsServiceRequest, + IExportLogsServiceResponse +> = { + serializeRequest: (arg: IExportLogsServiceRequest) => { + return Buffer.from(logsRequestType.encode(arg).finish()); + }, + deserializeResponse: (arg: Buffer) => { + return logsResponseType.decode(arg); + }, +}; + +export const TraceSerializer: ISerializer< + IExportTraceServiceRequest, + IExportTraceServiceResponse +> = { + serializeRequest: (arg: IExportTraceServiceRequest) => { + return Buffer.from(traceRequestType.encode(arg).finish()); + }, + deserializeResponse: (arg: Buffer) => { + return traceResponseType.decode(arg); + }, +}; + +export const MetricsSerializer: ISerializer< + IExportMetricsServiceRequest, + IExportMetricsServiceResponse +> = { + serializeRequest: (arg: IExportMetricsServiceRequest) => { + return Buffer.from(metricsRequestType.encode(arg).finish()); + }, + deserializeResponse: (arg: Buffer) => { + return metricsResponseType.decode(arg); + }, +}; diff --git a/experimental/packages/otlp-grpc-exporter-base/src/types.ts b/experimental/packages/otlp-grpc-exporter-base/src/types.ts index 7ecedff1ba..43caad1371 100644 --- a/experimental/packages/otlp-grpc-exporter-base/src/types.ts +++ b/experimental/packages/otlp-grpc-exporter-base/src/types.ts @@ -14,7 +14,8 @@ * limitations under the License. */ -import * as grpc from '@grpc/grpc-js'; +import type { ChannelCredentials, Metadata } from '@grpc/grpc-js'; + import { CompressionAlgorithm, OTLPExporterConfigBase, @@ -31,31 +32,11 @@ export interface GRPCQueueItem { onError: (error: OTLPExporterError) => void; } -/** - * Service Client for sending spans/metrics/logs - */ -export interface ServiceClient { - export: ( - request: any, - metadata: grpc.Metadata, - options: grpc.CallOptions, - callback: Function - ) => {}; - - close(): void; -} - /** * OTLP Exporter Config for Node */ export interface OTLPGRPCExporterConfigNode extends OTLPExporterConfigBase { - credentials?: grpc.ChannelCredentials; - metadata?: grpc.Metadata; + credentials?: ChannelCredentials; + metadata?: Metadata; compression?: CompressionAlgorithm; } - -export enum ServiceClientType { - SPANS, - METRICS, - LOGS, -} diff --git a/experimental/packages/otlp-grpc-exporter-base/src/util.ts b/experimental/packages/otlp-grpc-exporter-base/src/util.ts index 78809466c9..4386b34169 100644 --- a/experimental/packages/otlp-grpc-exporter-base/src/util.ts +++ b/experimental/packages/otlp-grpc-exporter-base/src/util.ts @@ -14,111 +14,23 @@ * limitations under the License. */ -import * as grpc from '@grpc/grpc-js'; import { diag } from '@opentelemetry/api'; -import { getEnv, globalErrorHandler } from '@opentelemetry/core'; +import { getEnv } from '@opentelemetry/core'; import * as path from 'path'; -import { OTLPGRPCExporterNodeBase } from './OTLPGRPCExporterNodeBase'; import { URL } from 'url'; import * as fs from 'fs'; +import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base'; import { - GRPCQueueItem, - OTLPGRPCExporterConfigNode, - ServiceClientType, -} from './types'; -import { - ExportServiceError, - OTLPExporterError, - CompressionAlgorithm, -} from '@opentelemetry/otlp-exporter-base'; + createInsecureCredentials, + createSslCredentials, +} from './grpc-exporter-transport'; -import { MetricExportServiceClient } from './MetricsExportServiceClient'; -import { TraceExportServiceClient } from './TraceExportServiceClient'; -import { LogsExportServiceClient } from './LogsExportServiceClient'; +// NOTE: do not change these type imports to actual imports. Doing so WILL break `@opentelemetry/instrumentation-http`, +// as they'd be imported before the http/https modules can be wrapped. +import type { ChannelCredentials } from '@grpc/grpc-js'; export const DEFAULT_COLLECTOR_URL = 'http://localhost:4317'; -export function onInit( - collector: OTLPGRPCExporterNodeBase, - config: OTLPGRPCExporterConfigNode -): void { - collector.grpcQueue = []; - - const credentials: grpc.ChannelCredentials = configureSecurity( - config.credentials, - collector.getUrlFromConfig(config) - ); - - try { - if (collector.getServiceClientType() === ServiceClientType.SPANS) { - const client = new TraceExportServiceClient(collector.url, credentials, { - 'grpc.default_compression_algorithm': collector.compression.valueOf(), - }); - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - collector.serviceClient = client; - } else if (collector.getServiceClientType() === ServiceClientType.METRICS) { - const client = new MetricExportServiceClient(collector.url, credentials, { - 'grpc.default_compression_algorithm': collector.compression.valueOf(), - }); - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - collector.serviceClient = client; - } else if (collector.getServiceClientType() === ServiceClientType.LOGS) { - const client = new LogsExportServiceClient(collector.url, credentials, { - 'grpc.default_compression_algorithm': collector.compression.valueOf(), - }); - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - collector.serviceClient = client; - } - } catch (err) { - globalErrorHandler(err); - } - if (collector.grpcQueue.length > 0) { - const queue = collector.grpcQueue.splice(0); - queue.forEach((item: GRPCQueueItem) => { - collector.send(item.objects, item.onSuccess, item.onError); - }); - } -} - -export function send( - collector: OTLPGRPCExporterNodeBase, - objects: ExportItem[], - onSuccess: () => void, - onError: (error: OTLPExporterError) => void -): void { - if (collector.serviceClient) { - const serviceRequest = collector.convert(objects); - const deadline = Date.now() + collector.timeoutMillis; - - collector.serviceClient.export( - serviceRequest, - collector.metadata || new grpc.Metadata(), - { deadline: deadline }, - (err: ExportServiceError) => { - if (err) { - diag.error('Service request', serviceRequest); - onError(err); - } else { - diag.debug('Objects sent'); - onSuccess(); - } - } - ); - } else { - collector.grpcQueue.push({ - objects, - onSuccess, - onError, - }); - } -} - export function validateAndNormalizeUrl(url: string): string { const hasProtocol = url.match(/^([\w]{1,8}):\/\//); if (!hasProtocol) { @@ -139,10 +51,10 @@ export function validateAndNormalizeUrl(url: string): string { return target.host; } -export function configureSecurity( - credentials: grpc.ChannelCredentials | undefined, +export function configureCredentials( + credentials: ChannelCredentials | undefined, endpoint: string -): grpc.ChannelCredentials { +): ChannelCredentials { let insecure: boolean; if (credentials) { @@ -159,9 +71,9 @@ export function configureSecurity( } if (insecure) { - return grpc.credentials.createInsecure(); + return createInsecureCredentials(); } else { - return useSecureConnection(); + return getCredentialsFromEnvironment(); } } @@ -177,16 +89,15 @@ function getSecurityFromEnv(): boolean { } } -export function useSecureConnection(): grpc.ChannelCredentials { - const rootCertPath = retrieveRootCert(); - const privateKeyPath = retrievePrivateKey(); - const certChainPath = retrieveCertChain(); +/** + * Exported for testing + */ +export function getCredentialsFromEnvironment(): ChannelCredentials { + const rootCert = retrieveRootCert(); + const privateKey = retrievePrivateKey(); + const certChain = retrieveCertChain(); - return grpc.credentials.createSsl( - rootCertPath, - privateKeyPath, - certChainPath - ); + return createSslCredentials(rootCert, privateKey, certChain); } function retrieveRootCert(): Buffer | undefined { @@ -240,36 +151,25 @@ function retrieveCertChain(): Buffer | undefined { } } -function toGrpcCompression( - compression: CompressionAlgorithm -): GrpcCompressionAlgorithm { - if (compression === CompressionAlgorithm.NONE) - return GrpcCompressionAlgorithm.NONE; - else if (compression === CompressionAlgorithm.GZIP) - return GrpcCompressionAlgorithm.GZIP; - return GrpcCompressionAlgorithm.NONE; -} - -/** - * These values are defined by grpc client - */ -export enum GrpcCompressionAlgorithm { - NONE = 0, - GZIP = 2, -} - export function configureCompression( compression: CompressionAlgorithm | undefined -): GrpcCompressionAlgorithm { - if (compression) { - return toGrpcCompression(compression); - } else { - const definedCompression = - getEnv().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || - getEnv().OTEL_EXPORTER_OTLP_COMPRESSION; +): CompressionAlgorithm { + if (compression != null) { + return compression; + } + + const envCompression = + getEnv().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION || + getEnv().OTEL_EXPORTER_OTLP_COMPRESSION; - return definedCompression === 'gzip' - ? GrpcCompressionAlgorithm.GZIP - : GrpcCompressionAlgorithm.NONE; + if (envCompression === 'gzip') { + return CompressionAlgorithm.GZIP; + } else if (envCompression === 'none') { + return CompressionAlgorithm.NONE; } + + diag.warn( + 'Unknown compression "' + envCompression + '", falling back to "none"' + ); + return CompressionAlgorithm.NONE; } diff --git a/experimental/packages/otlp-grpc-exporter-base/test/OTLPGRPCExporterNodeBase.test.ts b/experimental/packages/otlp-grpc-exporter-base/test/OTLPGRPCExporterNodeBase.test.ts index ec28b53011..f70ffd08cd 100644 --- a/experimental/packages/otlp-grpc-exporter-base/test/OTLPGRPCExporterNodeBase.test.ts +++ b/experimental/packages/otlp-grpc-exporter-base/test/OTLPGRPCExporterNodeBase.test.ts @@ -17,55 +17,33 @@ import { ReadableSpan } from '@opentelemetry/sdk-trace-base'; import * as assert from 'assert'; import { OTLPGRPCExporterNodeBase } from '../src/OTLPGRPCExporterNodeBase'; -import { OTLPGRPCExporterConfigNode, ServiceClientType } from '../src/types'; +import { OTLPGRPCExporterConfigNode } from '../src/types'; import { mockedReadableSpan } from './traceHelper'; -import { OTLPExporterError } from '@opentelemetry/otlp-exporter-base'; +import { ExportResponse, ExportResponseSuccess } from '../src/export-response'; +import { IExporterTransport } from '../src/exporter-transport'; +import { ISerializer } from '../src'; +import sinon = require('sinon'); class MockCollectorExporter extends OTLPGRPCExporterNodeBase< ReadableSpan, - ReadableSpan[] + ReadableSpan[], + any > { - /** - * Callbacks passed to _send() - */ - sendCallbacks: { - onSuccess: () => void; - onError: (error: OTLPExporterError) => void; - }[] = []; - getDefaultUrl(config: OTLPGRPCExporterConfigNode): string { return ''; } - getDefaultServiceName(config: OTLPGRPCExporterConfigNode): string { - return ''; - } - convert(spans: ReadableSpan[]): ReadableSpan[] { return spans; } - getServiceClientType() { - return ServiceClientType.SPANS; - } - - getServiceProtoPath(): string { - return 'opentelemetry/proto/collector/trace/v1/trace_service.proto'; - } - getUrlFromConfig(config: OTLPGRPCExporterConfigNode): string { return ''; } } -// Mocked _send which just saves the callbacks for later -MockCollectorExporter.prototype['_send'] = function _sendMock( - self: MockCollectorExporter, - objects: ReadableSpan[], - onSuccess: () => void, - onError: (error: OTLPExporterError) => void -): void { - self.sendCallbacks.push({ onSuccess, onError }); +const successfulResponse: ExportResponseSuccess = { + status: 'success', }; describe('OTLPGRPCExporterNodeBase', () => { @@ -73,12 +51,54 @@ describe('OTLPGRPCExporterNodeBase', () => { const concurrencyLimit = 5; beforeEach(done => { - exporter = new MockCollectorExporter({ concurrencyLimit }); + const transportStubs = { + // make transport succeed + send: sinon.stub().resolves(successfulResponse), + shutdown: sinon.stub(), + }; + const mockTransport = transportStubs; + const signalSpecificMetadata: Record = { + key: 'signal-specific-metadata', + }; + + const serializerStubs = { + serializeRequest: sinon.stub().resolves(Buffer.from([1, 2, 3])), + deserializeResponse: sinon + .stub() + .resolves({ responseKey: 'responseValue' }), + }; + + const serializer = >serializerStubs; + + exporter = new MockCollectorExporter( + { concurrencyLimit }, + signalSpecificMetadata, + 'grpcName', + 'grpcPath', + serializer + ); + + exporter['_transport'] = mockTransport; done(); }); + afterEach(function () { + sinon.restore(); + }); + describe('export', () => { it('should export requests concurrently', async () => { + const sendResolveFunctions: ((response: ExportResponse) => void)[] = []; + const transportStubs = { + send: sinon.stub().returns( + new Promise(resolve => { + sendResolveFunctions.push(resolve); + }) + ), + shutdown: sinon.stub(), + }; + exporter['_transport'] = transportStubs; + const spans = [Object.assign({}, mockedReadableSpan)]; const numToExport = concurrencyLimit; @@ -89,7 +109,7 @@ describe('OTLPGRPCExporterNodeBase', () => { assert.strictEqual(exporter['_sendingPromises'].length, numToExport); const promisesAllDone = Promise.all(exporter['_sendingPromises']); // Mock that all requests finish sending - exporter.sendCallbacks.forEach(({ onSuccess }) => onSuccess()); + sendResolveFunctions.forEach(resolve => resolve(successfulResponse)); // All finished promises should be popped off await promisesAllDone; @@ -97,6 +117,17 @@ describe('OTLPGRPCExporterNodeBase', () => { }); it('should drop new export requests when already sending at concurrencyLimit', async () => { + const sendResolveFunctions: ((response: ExportResponse) => void)[] = []; + const transportStubs = { + send: sinon.stub().returns( + new Promise(resolve => { + sendResolveFunctions.push(resolve); + }) + ), + shutdown: sinon.stub(), + }; + exporter['_transport'] = transportStubs; + const spans = [Object.assign({}, mockedReadableSpan)]; const numToExport = concurrencyLimit + 5; @@ -107,7 +138,7 @@ describe('OTLPGRPCExporterNodeBase', () => { assert.strictEqual(exporter['_sendingPromises'].length, concurrencyLimit); const promisesAllDone = Promise.all(exporter['_sendingPromises']); // Mock that all requests finish sending - exporter.sendCallbacks.forEach(({ onSuccess }) => onSuccess()); + sendResolveFunctions.forEach(resolve => resolve(successfulResponse)); // All finished promises should be popped off await promisesAllDone; @@ -115,45 +146,65 @@ describe('OTLPGRPCExporterNodeBase', () => { }); it('should pop export request promises even if they failed', async () => { + const sendRejectFunctions: ((error: Error) => void)[] = []; + const transportStubs = { + send: sinon.stub().returns( + new Promise((_, reject) => { + sendRejectFunctions.push(reject); + }) + ), + shutdown: sinon.stub(), + }; + exporter['_transport'] = transportStubs; + const spans = [Object.assign({}, mockedReadableSpan)]; exporter.export(spans, () => {}); assert.strictEqual(exporter['_sendingPromises'].length, 1); const promisesAllDone = Promise.all(exporter['_sendingPromises']); // Mock that all requests fail sending - exporter.sendCallbacks.forEach(({ onError }) => - onError(new Error('Failed to send!!')) - ); + sendRejectFunctions.forEach(reject => reject(new Error('export failed'))); // All finished promises should be popped off await promisesAllDone; assert.strictEqual(exporter['_sendingPromises'].length, 0); }); - it('should pop export request promises even if success callback throws error', async () => { - const spans = [Object.assign({}, mockedReadableSpan)]; + it('should pop export request promises even if resolve throws error', async () => { + const transportStubs = { + send: sinon.stub().returns( + new Promise(_ => { + throw new Error('this failed'); + }) + ), + shutdown: sinon.stub(), + }; + exporter['_transport'] = transportStubs; - exporter['_sendPromise']( - spans, - () => { - throw new Error('Oops'); - }, - () => {} - ); + const spans = [Object.assign({}, mockedReadableSpan)]; + exporter.export(spans, () => {}); assert.strictEqual(exporter['_sendingPromises'].length, 1); + const promisesAllDone = Promise.all(exporter['_sendingPromises']) // catch expected unhandled exception .catch(() => {}); - // Mock that the request finishes sending - exporter.sendCallbacks.forEach(({ onSuccess }) => { - onSuccess(); - }); - // All finished promises should be popped off await promisesAllDone; assert.strictEqual(exporter['_sendingPromises'].length, 0); }); }); + + describe('shutdown', function () { + it('calls shutdown on transport', function () { + const transportStubs = { + send: sinon.stub(), + shutdown: sinon.stub(), + }; + exporter['_transport'] = transportStubs; + exporter.shutdown(); + sinon.assert.calledOnce(transportStubs.shutdown); + }); + }); }); diff --git a/experimental/packages/otlp-grpc-exporter-base/test/grpc-exporter-transport.test.ts b/experimental/packages/otlp-grpc-exporter-base/test/grpc-exporter-transport.test.ts new file mode 100644 index 0000000000..965c01607c --- /dev/null +++ b/experimental/packages/otlp-grpc-exporter-base/test/grpc-exporter-transport.test.ts @@ -0,0 +1,311 @@ +/* + * 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 { + createEmptyMetadata, + createInsecureCredentials, + createSslCredentials, + GrpcExporterTransport, + GrpcExporterTransportParameters, +} from '../src/grpc-exporter-transport'; +import * as assert from 'assert'; +import * as fs from 'fs'; +import sinon = require('sinon'); +import { Metadata, Server, ServerCredentials } from '@grpc/grpc-js'; +import { types } from 'util'; +import { + ExportResponseFailure, + ExportResponseSuccess, +} from '../src/export-response'; + +const testServiceDefinition = { + export: { + path: '/test/Export', + requestStream: false, + responseStream: false, + requestSerialize: (arg: Buffer) => { + return arg; + }, + requestDeserialize: (arg: Buffer) => { + return arg; + }, + responseSerialize: (arg: Buffer) => { + return arg; + }, + responseDeserialize: (arg: Buffer) => { + return arg; + }, + }, +}; + +const simpleClientConfig: GrpcExporterTransportParameters = { + metadata: () => { + const metadata = createEmptyMetadata(); + metadata.set('foo', 'bar'); + return metadata; + }, + timeoutMillis: 100, + grpcPath: '/test/Export', + grpcName: 'name', + credentials: createInsecureCredentials, + compression: 'none', + address: 'localhost:1234', +}; + +interface ExportedData { + request: Buffer; + metadata: Metadata; +} + +interface ServerTestContext { + requests: ExportedData[]; + serverResponseProvider: () => { error: Error | null; buffer?: Buffer }; +} + +/** + * Starts a customizable server that saves all responses to context.responses + * Returns data as defined in context.ServerResponseProvider + * + * @return shutdown handle, needs to be called to ensure that mocha exits + * @param context context for storing responses and to define server behavior. + */ +function startServer(context: ServerTestContext): Promise<() => void> { + const server = new Server(); + server.addService(testServiceDefinition, { + export: (data: ExportedData, callback: any) => { + context.requests.push(data); + const response = context.serverResponseProvider(); + callback(response.error, response.buffer); + }, + }); + + return new Promise<() => void>((resolve, reject) => { + server.bindAsync( + 'localhost:1234', + ServerCredentials.createInsecure(), + (error, port) => { + server.start(); + if (error != null) { + reject(error); + } + resolve(() => { + server.forceShutdown(); + }); + } + ); + }); +} + +describe('GrpcExporterTransport', function () { + describe('utilities', function () { + describe('createEmptyMetadata', function () { + it('returns new empty Metadata', function () { + const metadata = createEmptyMetadata(); + assert.strictEqual(Object.keys(metadata.getMap()).length, 0); + }); + }); + + describe('createInsecureCredentials', function () { + it('creates insecure grpc credentials', function () { + const credentials = createInsecureCredentials(); + assert.ok(!credentials._isSecure()); + }); + }); + + describe('createSslCredentials', function () { + it('creates SSL grpc credentials', function () { + const credentials = createSslCredentials( + Buffer.from(fs.readFileSync('./test/certs/ca.crt')), + Buffer.from(fs.readFileSync('./test/certs/client.key')), + Buffer.from(fs.readFileSync('./test/certs/client.crt')) + ); + assert.ok(credentials._isSecure()); + }); + }); + }); + describe('shutdown', function () { + afterEach(function () { + sinon.restore(); + }); + it('before send() does not error', function () { + const transport = new GrpcExporterTransport(simpleClientConfig); + transport.shutdown(); + + // no assertions, just checking that it does not throw any errors. + }); + + it('calls client shutdown if client is defined', function () { + // arrange + const transport = new GrpcExporterTransport({ + metadata: createEmptyMetadata, + timeoutMillis: 100, + grpcPath: 'path', + grpcName: 'name', + credentials: createInsecureCredentials, + compression: 'gzip', + address: 'localhost:1234', + }); + const shutdownStub = sinon.stub(); + transport['_client'] = { + shutdown: shutdownStub, + }; + + // act + transport.shutdown(); + + // assert + sinon.assert.calledOnce(shutdownStub); + }); + }); + describe('send', function () { + let shutdownHandle: () => void | undefined; + const serverTestContext: ServerTestContext = { + requests: [], + serverResponseProvider: () => { + return { error: null, buffer: Buffer.from([]) }; + }, + }; + + beforeEach(async function () { + shutdownHandle = await startServer(serverTestContext); + }); + + afterEach(function () { + shutdownHandle(); + + // clear context + serverTestContext.requests = []; + serverTestContext.serverResponseProvider = () => { + return { error: null, buffer: Buffer.from([]) }; + }; + }); + + it('sends data', async function () { + const transport = new GrpcExporterTransport(simpleClientConfig); + + const result = (await transport.send( + Buffer.from([1, 2, 3]) + )) as ExportResponseSuccess; + + assert.strictEqual(result.status, 'success'); + assert.deepEqual(result.data, Buffer.from([])); + assert.strictEqual(serverTestContext.requests.length, 1); + assert.deepEqual( + serverTestContext.requests[0].request, + Buffer.from([1, 2, 3]) + ); + assert.deepEqual( + serverTestContext.requests[0].metadata.get('foo'), + simpleClientConfig.metadata().get('foo') + ); + }); + + it('forwards response', async function () { + const expectedResponseData = Buffer.from([1, 2, 3]); + serverTestContext.serverResponseProvider = () => { + return { + buffer: expectedResponseData, + error: null, + }; + }; + const transport = new GrpcExporterTransport(simpleClientConfig); + + const result = (await transport.send( + Buffer.from([]) + )) as ExportResponseSuccess; + + assert.strictEqual(result.status, 'success'); + assert.deepEqual(result.data, expectedResponseData); + }); + + it('forwards handled server error as failure', async function () { + serverTestContext.serverResponseProvider = () => { + return { + buffer: Buffer.from([]), + error: new Error('handled server error'), + }; + }; + const transport = new GrpcExporterTransport(simpleClientConfig); + + const result = (await transport.send( + Buffer.from([]) + )) as ExportResponseFailure; + + assert.strictEqual(result.status, 'failure'); + assert.ok(types.isNativeError(result.error)); + }); + + it('forwards unhandled server error as failure', async function () { + serverTestContext.serverResponseProvider = () => { + throw new Error('unhandled server error'); + }; + const transport = new GrpcExporterTransport(simpleClientConfig); + + const result = (await transport.send( + Buffer.from([]) + )) as ExportResponseFailure; + assert.strictEqual(result.status, 'failure'); + assert.ok(types.isNativeError(result.error)); + }); + + it('forwards metadataProvider error as failure', async function () { + const expectedError = new Error('metadata provider error'); + const config = Object.assign({}, simpleClientConfig); + config.metadata = () => { + throw expectedError; + }; + + const transport = new GrpcExporterTransport(config); + + const result = (await transport.send( + Buffer.from([]) + )) as ExportResponseFailure; + assert.strictEqual(result.status, 'failure'); + assert.strictEqual(result.error, expectedError); + }); + + it('forwards metadataProvider returns null value as failure', async function () { + const expectedError = new Error('metadata was null'); + const config = Object.assign({}, simpleClientConfig); + config.metadata = () => { + return null as unknown as Metadata; + }; + + const transport = new GrpcExporterTransport(config); + + const result = (await transport.send( + Buffer.from([]) + )) as ExportResponseFailure; + assert.strictEqual(result.status, 'failure'); + assert.deepEqual(result.error, expectedError); + }); + + it('forwards credential error as failure', async function () { + const expectedError = new Error('credential provider error'); + const config = Object.assign({}, simpleClientConfig); + config.credentials = () => { + throw expectedError; + }; + + const transport = new GrpcExporterTransport(config); + + const result = (await transport.send( + Buffer.from([]) + )) as ExportResponseFailure; + assert.strictEqual(result.status, 'failure'); + assert.strictEqual(result.error, expectedError); + }); + }); +}); diff --git a/experimental/packages/otlp-grpc-exporter-base/test/util.test.ts b/experimental/packages/otlp-grpc-exporter-base/test/util.test.ts index 967ece6716..1da067b559 100644 --- a/experimental/packages/otlp-grpc-exporter-base/test/util.test.ts +++ b/experimental/packages/otlp-grpc-exporter-base/test/util.test.ts @@ -22,9 +22,8 @@ import * as grpc from '@grpc/grpc-js'; import { validateAndNormalizeUrl, configureCompression, - GrpcCompressionAlgorithm, - configureSecurity, - useSecureConnection, + configureCredentials, + getCredentialsFromEnvironment, DEFAULT_COLLECTOR_URL, } from '../src/util'; import { CompressionAlgorithm } from '@opentelemetry/otlp-exporter-base'; @@ -94,15 +93,15 @@ describe('validateAndNormalizeUrl()', () => { }); }); -describe('utils - configureSecurity', () => { +describe('utils - configureCredentials', () => { const envSource = process.env; it('should return insecure channel when using all defaults', () => { - const credentials = configureSecurity(undefined, DEFAULT_COLLECTOR_URL); + const credentials = configureCredentials(undefined, DEFAULT_COLLECTOR_URL); assert.ok(credentials._isSecure() === false); }); it('should return user defined channel credentials', () => { const userDefinedCredentials = grpc.credentials.createSsl(); - const credentials = configureSecurity( + const credentials = configureCredentials( userDefinedCredentials, 'http://foo.bar' ); @@ -112,40 +111,40 @@ describe('utils - configureSecurity', () => { }); it('should return secure channel when endpoint contains https scheme - no matter insecure env settings,', () => { envSource.OTEL_EXPORTER_OTLP_TRACES_INSECURE = 'true'; - const credentials = configureSecurity(undefined, 'https://foo.bar'); + const credentials = configureCredentials(undefined, 'https://foo.bar'); assert.ok(credentials._isSecure() === true); delete envSource.OTEL_EXPORTER_OTLP_TRACES_INSECURE; }); it('should return insecure channel when endpoint contains http scheme and no insecure env settings', () => { - const credentials = configureSecurity(undefined, 'http://foo.bar'); + const credentials = configureCredentials(undefined, 'http://foo.bar'); assert.ok(credentials._isSecure() === false); }); it('should return secure channel when endpoint does not contain scheme and no insecure env settings', () => { - const credentials = configureSecurity(undefined, 'foo.bar'); + const credentials = configureCredentials(undefined, 'foo.bar'); assert.ok(credentials._isSecure() === true); }); it('should return insecure channel when endpoint contains http scheme and insecure env set to false', () => { envSource.OTEL_EXPORTER_OTLP_TRACES_INSECURE = 'false'; - const credentials = configureSecurity(undefined, 'http://foo.bar'); + const credentials = configureCredentials(undefined, 'http://foo.bar'); assert.ok(credentials._isSecure() === false); delete envSource.OTEL_EXPORTER_OTLP_TRACES_INSECURE; }); it('should return insecure channel when endpoint contains http scheme and insecure env set to true', () => { envSource.OTEL_EXPORTER_OTLP_INSECURE = 'true'; - const credentials = configureSecurity(undefined, 'http://localhost'); + const credentials = configureCredentials(undefined, 'http://localhost'); assert.ok(credentials._isSecure() === false); delete envSource.OTEL_EXPORTER_OTLP_INSECURE; }); it('should return secure channel when endpoint does not contain scheme and insecure env set to false', () => { envSource.OTEL_EXPORTER_OTLP_TRACES_INSECURE = 'false'; - const credentials = configureSecurity(undefined, 'foo.bar'); + const credentials = configureCredentials(undefined, 'foo.bar'); assert.ok(credentials._isSecure() === true); delete envSource.OTEL_EXPORTER_OTLP_TRACES_INSECURE; }); it('should return insecure channel when endpoint does not contain scheme and insecure env set to true', () => { envSource.OTEL_EXPORTER_OTLP_INSECURE = 'true'; - const credentials = configureSecurity(undefined, 'foo.bar'); + const credentials = configureCredentials(undefined, 'foo.bar'); assert.ok(credentials._isSecure() === false); delete envSource.OTEL_EXPORTER_OTLP_INSECURE; }); @@ -159,7 +158,7 @@ describe('useSecureConnection', () => { envSource.OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE = './test/certs/client.crt'; - const credentials = useSecureConnection(); + const credentials = getCredentialsFromEnvironment(); assert.ok(credentials._isSecure() === true); delete envSource.OTEL_EXPORTER_OTLP_CERTIFICATE; @@ -168,14 +167,14 @@ describe('useSecureConnection', () => { }); it('should return secure connection using only root certificate', () => { envSource.OTEL_EXPORTER_OTLP_CERTIFICATE = './test/certs/ca.crt'; - const credentials = useSecureConnection(); + const credentials = getCredentialsFromEnvironment(); assert.ok(credentials._isSecure() === true); delete envSource.OTEL_EXPORTER_OTLP_CERTIFICATE; }); it('should warn user when file cannot be read and use default root certificate', () => { envSource.OTEL_EXPORTER_OTLP_CERTIFICATE = './wrongpath/test/certs/ca.crt'; const diagWarn = sinon.stub(diag, 'warn'); - const credentials = useSecureConnection(); + const credentials = getCredentialsFromEnvironment(); const args = diagWarn.args[0]; assert.strictEqual(args[0], 'Failed to read root certificate file'); @@ -193,14 +192,14 @@ describe('configureCompression', () => { const compression = CompressionAlgorithm.NONE; assert.strictEqual( configureCompression(compression), - GrpcCompressionAlgorithm.NONE + CompressionAlgorithm.NONE ); }); it('should return gzip compression defined via env', () => { envSource.OTEL_EXPORTER_OTLP_TRACES_COMPRESSION = 'gzip'; assert.strictEqual( configureCompression(undefined), - GrpcCompressionAlgorithm.GZIP + CompressionAlgorithm.GZIP ); delete envSource.OTEL_EXPORTER_OTLP_TRACES_COMPRESSION; }); @@ -208,14 +207,14 @@ describe('configureCompression', () => { envSource.OTEL_EXPORTER_OTLP_TRACES_COMPRESSION = 'none'; assert.strictEqual( configureCompression(undefined), - GrpcCompressionAlgorithm.NONE + CompressionAlgorithm.NONE ); delete envSource.OTEL_EXPORTER_OTLP_TRACES_COMPRESSION; }); it('should return none for compression when no compression is set', () => { assert.strictEqual( configureCompression(undefined), - GrpcCompressionAlgorithm.NONE + CompressionAlgorithm.NONE ); }); }); From 63d74cdc366fc337be66c1a766a2cc8e5275a85a Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Wed, 6 Mar 2024 17:53:41 +0100 Subject: [PATCH 10/10] chore(renovate): remove import-in-the-middle from all-patch group (#4513) --- renovate.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 1257c688d1..4c5698cf22 100644 --- a/renovate.json +++ b/renovate.json @@ -5,7 +5,7 @@ "groupName": "all patch versions", "groupSlug": "all-patch", "matchUpdateTypes": ["patch"], - "excludePackageNames": ["prettier"], + "excludePackageNames": ["prettier", "import-in-the-middle"], "schedule": ["before 3am every weekday"] }, {