@opentelemetry/otlp-exporter-base 0.220.0 → 0.222.0-development.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/build/esm/ExporterMetrics.d.ts +24 -0
- package/build/esm/ExporterMetrics.js +104 -0
- package/build/esm/ExporterMetrics.js.map +1 -0
- package/build/esm/OTLPExporterBase.d.ts +2 -0
- package/build/esm/OTLPExporterBase.js +3 -0
- package/build/esm/OTLPExporterBase.js.map +1 -1
- package/build/esm/configuration/create-legacy-browser-delegate.d.ts +8 -2
- package/build/esm/configuration/create-legacy-browser-delegate.js +36 -2
- package/build/esm/configuration/create-legacy-browser-delegate.js.map +1 -1
- package/build/esm/configuration/legacy-base-configuration.d.ts +26 -8
- package/build/esm/configuration/legacy-base-configuration.js.map +1 -1
- package/build/esm/configuration/legacy-node-configuration.d.ts +18 -4
- package/build/esm/configuration/legacy-node-configuration.js.map +1 -1
- package/build/esm/index-browser-http.d.ts +1 -1
- package/build/esm/index-browser-http.js +1 -1
- package/build/esm/index-browser-http.js.map +1 -1
- package/build/esm/index-node-http.d.ts +1 -1
- package/build/esm/index-node-http.js +1 -1
- package/build/esm/index-node-http.js.map +1 -1
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/otlp-browser-http-export-delegate.d.ts +3 -2
- package/build/esm/otlp-browser-http-export-delegate.js +8 -4
- package/build/esm/otlp-browser-http-export-delegate.js.map +1 -1
- package/build/esm/otlp-export-delegate.d.ts +3 -0
- package/build/esm/otlp-export-delegate.js +19 -6
- package/build/esm/otlp-export-delegate.js.map +1 -1
- package/build/esm/otlp-http-export-delegate.d.ts +5 -2
- package/build/esm/otlp-http-export-delegate.js +30 -1
- package/build/esm/otlp-http-export-delegate.js.map +1 -1
- package/build/esm/otlp-network-export-delegate.d.ts +2 -1
- package/build/esm/otlp-network-export-delegate.js +2 -1
- package/build/esm/otlp-network-export-delegate.js.map +1 -1
- package/build/esm/semconv.d.ts +91 -0
- package/build/esm/semconv.js +100 -0
- package/build/esm/semconv.js.map +1 -0
- package/build/esm/version.d.ts +1 -1
- package/build/esm/version.js +1 -1
- package/build/esm/version.js.map +1 -1
- package/build/esnext/ExporterMetrics.d.ts +24 -0
- package/build/esnext/ExporterMetrics.js +104 -0
- package/build/esnext/ExporterMetrics.js.map +1 -0
- package/build/esnext/OTLPExporterBase.d.ts +2 -0
- package/build/esnext/OTLPExporterBase.js +3 -0
- package/build/esnext/OTLPExporterBase.js.map +1 -1
- package/build/esnext/configuration/create-legacy-browser-delegate.d.ts +8 -2
- package/build/esnext/configuration/create-legacy-browser-delegate.js +36 -2
- package/build/esnext/configuration/create-legacy-browser-delegate.js.map +1 -1
- package/build/esnext/configuration/legacy-base-configuration.d.ts +26 -8
- package/build/esnext/configuration/legacy-base-configuration.js.map +1 -1
- package/build/esnext/configuration/legacy-node-configuration.d.ts +18 -4
- package/build/esnext/configuration/legacy-node-configuration.js.map +1 -1
- package/build/esnext/index-browser-http.d.ts +1 -1
- package/build/esnext/index-browser-http.js +1 -1
- package/build/esnext/index-browser-http.js.map +1 -1
- package/build/esnext/index-node-http.d.ts +1 -1
- package/build/esnext/index-node-http.js +1 -1
- package/build/esnext/index-node-http.js.map +1 -1
- package/build/esnext/index.d.ts +1 -0
- package/build/esnext/index.js +1 -0
- package/build/esnext/index.js.map +1 -1
- package/build/esnext/otlp-browser-http-export-delegate.d.ts +3 -2
- package/build/esnext/otlp-browser-http-export-delegate.js +8 -4
- package/build/esnext/otlp-browser-http-export-delegate.js.map +1 -1
- package/build/esnext/otlp-export-delegate.d.ts +3 -0
- package/build/esnext/otlp-export-delegate.js +19 -6
- package/build/esnext/otlp-export-delegate.js.map +1 -1
- package/build/esnext/otlp-http-export-delegate.d.ts +5 -2
- package/build/esnext/otlp-http-export-delegate.js +30 -1
- package/build/esnext/otlp-http-export-delegate.js.map +1 -1
- package/build/esnext/otlp-network-export-delegate.d.ts +2 -1
- package/build/esnext/otlp-network-export-delegate.js +2 -1
- package/build/esnext/otlp-network-export-delegate.js.map +1 -1
- package/build/esnext/semconv.d.ts +91 -0
- package/build/esnext/semconv.js +100 -0
- package/build/esnext/semconv.js.map +1 -0
- package/build/esnext/version.d.ts +1 -1
- package/build/esnext/version.js +1 -1
- package/build/esnext/version.js.map +1 -1
- package/build/src/ExporterMetrics.d.ts +24 -0
- package/build/src/ExporterMetrics.js +108 -0
- package/build/src/ExporterMetrics.js.map +1 -0
- package/build/src/OTLPExporterBase.d.ts +2 -0
- package/build/src/OTLPExporterBase.js +3 -0
- package/build/src/OTLPExporterBase.js.map +1 -1
- package/build/src/configuration/create-legacy-browser-delegate.d.ts +8 -2
- package/build/src/configuration/create-legacy-browser-delegate.js +38 -3
- package/build/src/configuration/create-legacy-browser-delegate.js.map +1 -1
- package/build/src/configuration/legacy-base-configuration.d.ts +26 -8
- package/build/src/configuration/legacy-base-configuration.js.map +1 -1
- package/build/src/configuration/legacy-node-configuration.d.ts +18 -4
- package/build/src/configuration/legacy-node-configuration.js +1 -1
- package/build/src/configuration/legacy-node-configuration.js.map +1 -1
- package/build/src/index-browser-http.d.ts +1 -1
- package/build/src/index-browser-http.js +2 -1
- package/build/src/index-browser-http.js.map +1 -1
- package/build/src/index-node-http.d.ts +1 -1
- package/build/src/index-node-http.js +2 -1
- package/build/src/index-node-http.js.map +1 -1
- package/build/src/index.d.ts +1 -0
- package/build/src/index.js +3 -1
- package/build/src/index.js.map +1 -1
- package/build/src/otlp-browser-http-export-delegate.d.ts +3 -2
- package/build/src/otlp-browser-http-export-delegate.js +8 -4
- package/build/src/otlp-browser-http-export-delegate.js.map +1 -1
- package/build/src/otlp-export-delegate.d.ts +3 -0
- package/build/src/otlp-export-delegate.js +19 -6
- package/build/src/otlp-export-delegate.js.map +1 -1
- package/build/src/otlp-http-export-delegate.d.ts +5 -2
- package/build/src/otlp-http-export-delegate.js +32 -2
- package/build/src/otlp-http-export-delegate.js.map +1 -1
- package/build/src/otlp-network-export-delegate.d.ts +2 -1
- package/build/src/otlp-network-export-delegate.js +2 -1
- package/build/src/otlp-network-export-delegate.js.map +1 -1
- package/build/src/semconv.d.ts +91 -0
- package/build/src/semconv.js +103 -0
- package/build/src/semconv.js.map +1 -0
- package/build/src/version.d.ts +1 -1
- package/build/src/version.js +1 -1
- package/build/src/version.js.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ATTR_ERROR_TYPE = exports.ATTR_SERVER_PORT = exports.ATTR_SERVER_ADDRESS = exports.ATTR_OTEL_COMPONENT_TYPE = exports.ATTR_OTEL_COMPONENT_NAME = exports.ATTR_HTTP_RESPONSE_STATUS_CODE = void 0;
|
|
8
|
+
/*
|
|
9
|
+
* This file contains a copy of unstable semantic convention definitions
|
|
10
|
+
* used by this package.
|
|
11
|
+
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).
|
|
15
|
+
*
|
|
16
|
+
* @example 200
|
|
17
|
+
*/
|
|
18
|
+
exports.ATTR_HTTP_RESPONSE_STATUS_CODE = 'http.response.status_code';
|
|
19
|
+
/**
|
|
20
|
+
* A name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.
|
|
21
|
+
*
|
|
22
|
+
* @example otlp_grpc_span_exporter/0
|
|
23
|
+
* @example custom-name
|
|
24
|
+
*
|
|
25
|
+
* @note Implementations **SHOULD** ensure a low cardinality for this attribute, even across application or SDK restarts.
|
|
26
|
+
* E.g. implementations **MUST NOT** use UUIDs as values for this attribute.
|
|
27
|
+
*
|
|
28
|
+
* Implementations **MAY** achieve these goals by following a `<otel.component.type>/<instance-counter>` pattern, e.g. `batching_span_processor/0`.
|
|
29
|
+
* Hereby `otel.component.type` refers to the corresponding attribute value of the component.
|
|
30
|
+
*
|
|
31
|
+
* The value of `instance-counter` **MAY** be automatically assigned by the component and uniqueness within the enclosing SDK instance **MUST** be guaranteed.
|
|
32
|
+
* For example, `<instance-counter>` **MAY** be implemented by using a monotonically increasing counter (starting with `0`), which is incremented every time an
|
|
33
|
+
* instance of the given component type is started.
|
|
34
|
+
*
|
|
35
|
+
* With this implementation, for example the first Batching Span Processor would have `batching_span_processor/0`
|
|
36
|
+
* as `otel.component.name`, the second one `batching_span_processor/1` and so on.
|
|
37
|
+
* These values will therefore be reused in the case of an application restart.
|
|
38
|
+
*
|
|
39
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
40
|
+
*/
|
|
41
|
+
exports.ATTR_OTEL_COMPONENT_NAME = 'otel.component.name';
|
|
42
|
+
/**
|
|
43
|
+
* A name identifying the type of the OpenTelemetry component.
|
|
44
|
+
*
|
|
45
|
+
* @example batching_span_processor
|
|
46
|
+
* @example com.example.MySpanExporter
|
|
47
|
+
*
|
|
48
|
+
* @note If none of the standardized values apply, implementations **SHOULD** use the language-defined name of the type.
|
|
49
|
+
* E.g. for Java the fully qualified classname **SHOULD** be used in this case.
|
|
50
|
+
*
|
|
51
|
+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
52
|
+
*/
|
|
53
|
+
exports.ATTR_OTEL_COMPONENT_TYPE = 'otel.component.type';
|
|
54
|
+
/**
|
|
55
|
+
* Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.
|
|
56
|
+
*
|
|
57
|
+
* @example example.com
|
|
58
|
+
* @example 10.1.2.80
|
|
59
|
+
* @example /tmp/my.sock
|
|
60
|
+
*
|
|
61
|
+
* @note When observed from the client side, and when communicating through an intermediary, `server.address` **SHOULD** represent the server address behind any intermediaries, for example proxies, if it's available.
|
|
62
|
+
*/
|
|
63
|
+
exports.ATTR_SERVER_ADDRESS = 'server.address';
|
|
64
|
+
/**
|
|
65
|
+
* Server port number.
|
|
66
|
+
*
|
|
67
|
+
* @example 80
|
|
68
|
+
* @example 8080
|
|
69
|
+
* @example 443
|
|
70
|
+
*
|
|
71
|
+
* @note When observed from the client side, and when communicating through an intermediary, `server.port` **SHOULD** represent the server port behind any intermediaries, for example proxies, if it's available.
|
|
72
|
+
*/
|
|
73
|
+
exports.ATTR_SERVER_PORT = 'server.port';
|
|
74
|
+
/**
|
|
75
|
+
* Describes a class of error the operation ended with.
|
|
76
|
+
*
|
|
77
|
+
* @example timeout
|
|
78
|
+
* @example java.net.UnknownHostException
|
|
79
|
+
* @example server_certificate_invalid
|
|
80
|
+
* @example 500
|
|
81
|
+
*
|
|
82
|
+
* @note The `error.type` **SHOULD** be predictable, and **SHOULD** have low cardinality.
|
|
83
|
+
*
|
|
84
|
+
* When `error.type` is set to a type (e.g., an exception type), its
|
|
85
|
+
* canonical class name identifying the type within the artifact **SHOULD** be used.
|
|
86
|
+
*
|
|
87
|
+
* Instrumentations **SHOULD** document the list of errors they report.
|
|
88
|
+
*
|
|
89
|
+
* The cardinality of `error.type` within one instrumentation library **SHOULD** be low.
|
|
90
|
+
* Telemetry consumers that aggregate data from multiple instrumentation libraries and applications
|
|
91
|
+
* should be prepared for `error.type` to have high cardinality at query time when no
|
|
92
|
+
* additional filters are applied.
|
|
93
|
+
*
|
|
94
|
+
* If the operation has completed successfully, instrumentations **SHOULD NOT** set `error.type`.
|
|
95
|
+
*
|
|
96
|
+
* If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes),
|
|
97
|
+
* it's **RECOMMENDED** to:
|
|
98
|
+
*
|
|
99
|
+
* - Use a domain-specific attribute
|
|
100
|
+
* - Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not.
|
|
101
|
+
*/
|
|
102
|
+
exports.ATTR_ERROR_TYPE = 'error.type';
|
|
103
|
+
//# sourceMappingURL=semconv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semconv.js","sourceRoot":"","sources":["../../src/semconv.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;GAIG;AAEH;;;;GAIG;AACU,QAAA,8BAA8B,GACzC,2BAAoC,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACU,QAAA,wBAAwB,GAAG,qBAA8B,CAAC;AAEvE;;;;;;;;;;GAUG;AACU,QAAA,wBAAwB,GAAG,qBAA8B,CAAC;AAEvE;;;;;;;;GAQG;AACU,QAAA,mBAAmB,GAAG,gBAAyB,CAAC;AAE7D;;;;;;;;GAQG;AACU,QAAA,gBAAgB,GAAG,aAAsB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACU,QAAA,eAAe,GAAG,YAAqB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/*\n * This file contains a copy of unstable semantic convention definitions\n * used by this package.\n * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv\n */\n\n/**\n * [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).\n *\n * @example 200\n */\nexport const ATTR_HTTP_RESPONSE_STATUS_CODE =\n 'http.response.status_code' as const;\n\n/**\n * A name uniquely identifying the instance of the OpenTelemetry component within its containing SDK instance.\n *\n * @example otlp_grpc_span_exporter/0\n * @example custom-name\n *\n * @note Implementations **SHOULD** ensure a low cardinality for this attribute, even across application or SDK restarts.\n * E.g. implementations **MUST NOT** use UUIDs as values for this attribute.\n *\n * Implementations **MAY** achieve these goals by following a `<otel.component.type>/<instance-counter>` pattern, e.g. `batching_span_processor/0`.\n * Hereby `otel.component.type` refers to the corresponding attribute value of the component.\n *\n * The value of `instance-counter` **MAY** be automatically assigned by the component and uniqueness within the enclosing SDK instance **MUST** be guaranteed.\n * For example, `<instance-counter>` **MAY** be implemented by using a monotonically increasing counter (starting with `0`), which is incremented every time an\n * instance of the given component type is started.\n *\n * With this implementation, for example the first Batching Span Processor would have `batching_span_processor/0`\n * as `otel.component.name`, the second one `batching_span_processor/1` and so on.\n * These values will therefore be reused in the case of an application restart.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OTEL_COMPONENT_NAME = 'otel.component.name' as const;\n\n/**\n * A name identifying the type of the OpenTelemetry component.\n *\n * @example batching_span_processor\n * @example com.example.MySpanExporter\n *\n * @note If none of the standardized values apply, implementations **SHOULD** use the language-defined name of the type.\n * E.g. for Java the fully qualified classname **SHOULD** be used in this case.\n *\n * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const ATTR_OTEL_COMPONENT_TYPE = 'otel.component.type' as const;\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.\n *\n * @example example.com\n * @example 10.1.2.80\n * @example /tmp/my.sock\n *\n * @note When observed from the client side, and when communicating through an intermediary, `server.address` **SHOULD** represent the server address behind any intermediaries, for example proxies, if it's available.\n */\nexport const ATTR_SERVER_ADDRESS = 'server.address' as const;\n\n/**\n * Server port number.\n *\n * @example 80\n * @example 8080\n * @example 443\n *\n * @note When observed from the client side, and when communicating through an intermediary, `server.port` **SHOULD** represent the server port behind any intermediaries, for example proxies, if it's available.\n */\nexport const ATTR_SERVER_PORT = 'server.port' as const;\n\n/**\n * Describes a class of error the operation ended with.\n *\n * @example timeout\n * @example java.net.UnknownHostException\n * @example server_certificate_invalid\n * @example 500\n *\n * @note The `error.type` **SHOULD** be predictable, and **SHOULD** have low cardinality.\n *\n * When `error.type` is set to a type (e.g., an exception type), its\n * canonical class name identifying the type within the artifact **SHOULD** be used.\n *\n * Instrumentations **SHOULD** document the list of errors they report.\n *\n * The cardinality of `error.type` within one instrumentation library **SHOULD** be low.\n * Telemetry consumers that aggregate data from multiple instrumentation libraries and applications\n * should be prepared for `error.type` to have high cardinality at query time when no\n * additional filters are applied.\n *\n * If the operation has completed successfully, instrumentations **SHOULD NOT** set `error.type`.\n *\n * If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes),\n * it's **RECOMMENDED** to:\n *\n * - Use a domain-specific attribute\n * - Set `error.type` to capture all errors, regardless of whether they are defined within the domain-specific set or not.\n */\nexport const ATTR_ERROR_TYPE = 'error.type' as const;\n"]}
|
package/build/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.222.0-development.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/build/src/version.js
CHANGED
package/build/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,uBAAuB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.222.0-development.0';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/otlp-exporter-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.222.0-development.0",
|
|
4
4
|
"description": "OpenTelemetry OTLP Exporter base (for internal use only)",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@opentelemetry/core": "2.
|
|
78
|
-
"@opentelemetry/otlp-transformer": "0.
|
|
77
|
+
"@opentelemetry/core": "2.11.0-development.0",
|
|
78
|
+
"@opentelemetry/otlp-transformer": "0.222.0-development.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@babel/core": "7.29.7",
|
|
@@ -86,23 +86,23 @@
|
|
|
86
86
|
"@types/sinon": "17.0.4",
|
|
87
87
|
"babel-plugin-istanbul": "8.0.0",
|
|
88
88
|
"karma": "6.4.4",
|
|
89
|
-
"karma-chrome-launcher": "3.
|
|
89
|
+
"karma-chrome-launcher": "3.2.0",
|
|
90
90
|
"karma-coverage": "2.2.1",
|
|
91
91
|
"karma-mocha": "2.0.1",
|
|
92
92
|
"karma-spec-reporter": "0.0.36",
|
|
93
93
|
"karma-webpack": "5.0.1",
|
|
94
|
-
"mocha": "11.
|
|
94
|
+
"mocha": "11.8.0",
|
|
95
95
|
"nyc": "17.1.0",
|
|
96
96
|
"sinon": "18.0.1",
|
|
97
97
|
"ts-loader": "9.5.7",
|
|
98
|
-
"typescript": "5.
|
|
99
|
-
"webpack": "5.
|
|
100
|
-
"webpack-cli": "7.
|
|
98
|
+
"typescript": "5.2.2",
|
|
99
|
+
"webpack": "5.108.4",
|
|
100
|
+
"webpack-cli": "7.2.2"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"@opentelemetry/api": "^1.3.0"
|
|
104
104
|
},
|
|
105
105
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-exporter-base",
|
|
106
106
|
"sideEffects": false,
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "f41805e769ba10fb6dae72a4b7a5a3dc67cca82e"
|
|
108
108
|
}
|