@opentelemetry/exporter-metrics-otlp-http 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 +8 -2
- package/build/esm/platform/browser/OTLPMetricExporter.d.ts +7 -0
- package/build/esm/platform/browser/OTLPMetricExporter.js +13 -3
- package/build/esm/platform/browser/OTLPMetricExporter.js.map +1 -1
- package/build/esm/platform/node/OTLPMetricExporter.d.ts +7 -0
- package/build/esm/platform/node/OTLPMetricExporter.js +13 -3
- package/build/esm/platform/node/OTLPMetricExporter.js.map +1 -1
- package/build/esm/semconv.d.ts +9 -0
- package/build/esm/semconv.js +18 -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/platform/browser/OTLPMetricExporter.d.ts +7 -0
- package/build/esnext/platform/browser/OTLPMetricExporter.js +13 -3
- package/build/esnext/platform/browser/OTLPMetricExporter.js.map +1 -1
- package/build/esnext/platform/node/OTLPMetricExporter.d.ts +7 -0
- package/build/esnext/platform/node/OTLPMetricExporter.js +13 -3
- package/build/esnext/platform/node/OTLPMetricExporter.js.map +1 -1
- package/build/esnext/semconv.d.ts +9 -0
- package/build/esnext/semconv.js +18 -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/OTLPMetricExporterOptions.js +1 -1
- package/build/src/OTLPMetricExporterOptions.js.map +1 -1
- package/build/src/platform/browser/OTLPMetricExporter.d.ts +7 -0
- package/build/src/platform/browser/OTLPMetricExporter.js +11 -1
- package/build/src/platform/browser/OTLPMetricExporter.js.map +1 -1
- package/build/src/platform/node/OTLPMetricExporter.d.ts +7 -0
- package/build/src/platform/node/OTLPMetricExporter.js +11 -1
- package/build/src/platform/node/OTLPMetricExporter.js.map +1 -1
- package/build/src/semconv.d.ts +9 -0
- package/build/src/semconv.js +21 -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 +14 -14
package/README.md
CHANGED
|
@@ -13,6 +13,11 @@ This module provides a metrics-exporter for OTLP (http/json) using protocol vers
|
|
|
13
13
|
npm install --save @opentelemetry/exporter-metrics-otlp-http
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
+
## Shared HTTP exporter options
|
|
17
|
+
|
|
18
|
+
This exporter uses the shared HTTP options documented in [`@opentelemetry/otlp-exporter-base`][otlp-exporter-base-config].
|
|
19
|
+
That includes `url`, `headers`, `timeoutMillis`, `concurrencyLimit`, and Node.js options such as `compression`, `keepAlive`, `httpAgentOptions`, and `userAgent`.
|
|
20
|
+
|
|
16
21
|
## Service Name
|
|
17
22
|
|
|
18
23
|
The OpenTelemetry Collector Metrics Exporter does not have a service name configuration.
|
|
@@ -83,7 +88,7 @@ In addition to settings passed to the constructor, the exporter also supports co
|
|
|
83
88
|
| Environment variable | Description |
|
|
84
89
|
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
90
|
| OTEL_EXPORTER_OTLP_ENDPOINT | The endpoint to send metrics to. This will also be used for the traces exporter if `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` is not configured. By default `http://localhost:4318` will be used. `/v1/metrics` will be automatically appended to configured values. |
|
|
86
|
-
| OTEL_EXPORTER_OTLP_METRICS_ENDPOINT | The endpoint to send metrics to. By default `
|
|
91
|
+
| OTEL_EXPORTER_OTLP_METRICS_ENDPOINT | The endpoint to send metrics to. By default `http://localhost:4318/v1/metrics` will be used. `v1/metrics` will not be appended automatically and has to be added explicitly. |
|
|
87
92
|
| OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE | The exporters aggregation temporality preference. Valid values are `cumulative`, `delta`, and `lowmemory`. `cumulative` selects cumulative temporality for all instrument kinds. `delta` selects delta aggregation temporality for Counter, Asynchronous Counter and Histogram instrument kinds, and selects cumulative aggregation for UpDownCounter and Asynchronous UpDownCounter instrument kinds. `lowmemory` selects delta aggregation temporality for Counter and Histogram instrument kinds, and selects cumulative aggregation for UpDownCounter, Asynchronous Counter and Asynchronous UpDownCounter instrument kinds. By default `cumulative` is used. |
|
|
88
93
|
|
|
89
94
|
> Settings configured programmatically take precedence over environment variables. Per-signal environment variables take
|
|
@@ -112,6 +117,7 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
|
|
|
112
117
|
[npm-url]: https://www.npmjs.com/package/@opentelemetry/exporter-metrics-otlp-http
|
|
113
118
|
[npm-url-grpc]: https://www.npmjs.com/package/@opentelemetry/exporter-metrics-otlp-grpc
|
|
114
119
|
[npm-url-proto]: https://www.npmjs.com/package/@opentelemetry/exporter-metrics-otlp-proto
|
|
120
|
+
[otlp-exporter-base-config]: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-exporter-base#http-exporter-configuration
|
|
115
121
|
[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fexporter-metrics-otlp-http.svg
|
|
116
122
|
[semconv-resource-service-name]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/README.md#service
|
|
117
|
-
[trace-exporter-url]: https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/exporter-trace-otlp-http
|
|
123
|
+
[trace-exporter-url]: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-http
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MeterProvider } from '@opentelemetry/api';
|
|
1
2
|
import type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';
|
|
2
3
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
3
4
|
import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
@@ -5,6 +6,12 @@ import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
|
5
6
|
* Collector Metric Exporter for Web
|
|
6
7
|
*/
|
|
7
8
|
export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
9
|
+
private readonly _url;
|
|
8
10
|
constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
13
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
14
|
+
*/
|
|
15
|
+
setSelfObsMeterProvider(meterProvider: MeterProvider): void;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=OTLPMetricExporter.d.ts.map
|
|
@@ -3,14 +3,24 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
6
|
-
import { JsonMetricsSerializer } from '@opentelemetry/otlp-transformer';
|
|
7
|
-
import { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';
|
|
6
|
+
import { JsonMetricsSerializer, MetricsExporterMetricsHelper, } from '@opentelemetry/otlp-transformer';
|
|
7
|
+
import { createLegacyOtlpBrowserExportDelegate, createLegacyOtlpBrowserExporterMetrics, } from '@opentelemetry/otlp-exporter-base/browser-http';
|
|
8
|
+
import { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';
|
|
8
9
|
/**
|
|
9
10
|
* Collector Metric Exporter for Web
|
|
10
11
|
*/
|
|
11
12
|
export class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
13
|
+
_url;
|
|
12
14
|
constructor(config) {
|
|
13
|
-
super(createLegacyOtlpBrowserExportDelegate(config ?? {}, JsonMetricsSerializer, 'v1/metrics', { 'Content-Type': 'application/json' }), config);
|
|
15
|
+
super(createLegacyOtlpBrowserExportDelegate(config ?? {}, JsonMetricsSerializer, OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, config?.selfObsMeterProvider, 'v1/metrics', { 'Content-Type': 'application/json' }), config);
|
|
16
|
+
this._url = config?.url;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
20
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
21
|
+
*/
|
|
22
|
+
setSelfObsMeterProvider(meterProvider) {
|
|
23
|
+
this.setMetrics(createLegacyOtlpBrowserExporterMetrics(OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, this._url, meterProvider));
|
|
14
24
|
}
|
|
15
25
|
}
|
|
16
26
|
//# sourceMappingURL=OTLPMetricExporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qCAAqC,EACrC,sCAAsC,GACvC,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,mDAAmD,EAAE,MAAM,eAAe,CAAC;AAEpF;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,sBAAsB;IAC3C,IAAI,CAAqB;IAC1C,YAAY,MAA2D;QACrE,KAAK,CACH,qCAAqC,CACnC,MAAM,IAAI,EAAE,EACZ,qBAAqB,EACrB,mDAAmD,EACnD,4BAA4B,EAC5B,MAAM,EAAE,oBAAoB,EAC5B,YAAY,EACZ,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,EACD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,aAA4B;QAClD,IAAI,CAAC,UAAU,CACb,sCAAsC,CACpC,mDAAmD,EACnD,4BAA4B,EAC5B,IAAI,CAAC,IAAI,EACT,aAAa,CACd,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { type MeterProvider } from '@opentelemetry/api';\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n JsonMetricsSerializer,\n MetricsExporterMetricsHelper,\n} from '@opentelemetry/otlp-transformer';\nimport {\n createLegacyOtlpBrowserExportDelegate,\n createLegacyOtlpBrowserExporterMetrics,\n} from '@opentelemetry/otlp-exporter-base/browser-http';\n\nimport { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';\n\n/**\n * Collector Metric Exporter for Web\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n private readonly _url: string | undefined;\n constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config ?? {},\n JsonMetricsSerializer,\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n config?.selfObsMeterProvider,\n 'v1/metrics',\n { 'Content-Type': 'application/json' }\n ),\n config\n );\n this._url = config?.url;\n }\n\n /**\n * Sets the meter provider to use to collect metrics for the exporter itself.\n * @experimental This method is experimental and is subject to breaking changes in minor releases.\n */\n setSelfObsMeterProvider(meterProvider: MeterProvider) {\n this.setMetrics(\n createLegacyOtlpBrowserExporterMetrics(\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n this._url,\n meterProvider\n )\n );\n }\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MeterProvider } from '@opentelemetry/api';
|
|
1
2
|
import type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';
|
|
2
3
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
3
4
|
import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
@@ -5,6 +6,12 @@ import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-ba
|
|
|
5
6
|
* OTLP Metric Exporter for Node.js
|
|
6
7
|
*/
|
|
7
8
|
export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
9
|
+
private readonly _url;
|
|
8
10
|
constructor(config?: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
13
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
14
|
+
*/
|
|
15
|
+
setSelfObsMeterProvider(meterProvider: MeterProvider): void;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=OTLPMetricExporter.d.ts.map
|
|
@@ -3,16 +3,26 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
6
|
-
import { JsonMetricsSerializer } from '@opentelemetry/otlp-transformer';
|
|
7
|
-
import { convertLegacyHttpOptions, createOtlpHttpExportDelegate, } from '@opentelemetry/otlp-exporter-base/node-http';
|
|
6
|
+
import { JsonMetricsSerializer, MetricsExporterMetricsHelper, } from '@opentelemetry/otlp-transformer';
|
|
7
|
+
import { convertLegacyHttpOptions, createOtlpHttpExportDelegate, createOtlpHttpExporterMetrics, } from '@opentelemetry/otlp-exporter-base/node-http';
|
|
8
|
+
import { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';
|
|
8
9
|
/**
|
|
9
10
|
* OTLP Metric Exporter for Node.js
|
|
10
11
|
*/
|
|
11
12
|
export class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
13
|
+
_url;
|
|
12
14
|
constructor(config) {
|
|
13
15
|
super(createOtlpHttpExportDelegate(convertLegacyHttpOptions(config ?? {}, 'METRICS', 'v1/metrics', {
|
|
14
16
|
'Content-Type': 'application/json',
|
|
15
|
-
}), JsonMetricsSerializer), config);
|
|
17
|
+
}), JsonMetricsSerializer, OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, config?.selfObsMeterProvider), config);
|
|
18
|
+
this._url = config?.url;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
22
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
23
|
+
*/
|
|
24
|
+
setSelfObsMeterProvider(meterProvider) {
|
|
25
|
+
this.setMetrics(createOtlpHttpExporterMetrics(OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, this._url, meterProvider));
|
|
16
26
|
}
|
|
17
27
|
}
|
|
18
28
|
//# sourceMappingURL=OTLPMetricExporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,mDAAmD,EAAE,MAAM,eAAe,CAAC;AAEpF;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,sBAAsB;IAC3C,IAAI,CAAqB;IAC1C,YAAY,MAA+D;QACzE,KAAK,CACH,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,IAAI,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE;YAC9D,cAAc,EAAE,kBAAkB;SACnC,CAAC,EACF,qBAAqB,EACrB,mDAAmD,EACnD,4BAA4B,EAC5B,MAAM,EAAE,oBAAoB,CAC7B,EACD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,aAA4B;QAClD,IAAI,CAAC,UAAU,CACb,6BAA6B,CAC3B,mDAAmD,EACnD,4BAA4B,EAC5B,IAAI,CAAC,IAAI,EACT,aAAa,CACd,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { type MeterProvider } from '@opentelemetry/api';\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n JsonMetricsSerializer,\n MetricsExporterMetricsHelper,\n} from '@opentelemetry/otlp-transformer';\nimport {\n convertLegacyHttpOptions,\n createOtlpHttpExportDelegate,\n createOtlpHttpExporterMetrics,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\nimport { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';\n\n/**\n * OTLP Metric Exporter for Node.js\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n private readonly _url: string | undefined;\n constructor(config?: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config ?? {}, 'METRICS', 'v1/metrics', {\n 'Content-Type': 'application/json',\n }),\n JsonMetricsSerializer,\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n config?.selfObsMeterProvider\n ),\n config\n );\n this._url = config?.url;\n }\n\n /**\n * Sets the meter provider to use to collect metrics for the exporter itself.\n * @experimental This method is experimental and is subject to breaking changes in minor releases.\n */\n setSelfObsMeterProvider(meterProvider: MeterProvider) {\n this.setMetrics(\n createOtlpHttpExporterMetrics(\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n this._url,\n meterProvider\n )\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum value "otlp_http_metric_exporter" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.
|
|
3
|
+
*
|
|
4
|
+
* OTLP metric exporter over HTTP with protobuf serialization
|
|
5
|
+
*
|
|
6
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER: "otlp_http_metric_exporter";
|
|
9
|
+
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* This file contains a copy of unstable semantic convention definitions
|
|
7
|
+
* used by this package.
|
|
8
|
+
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Enum value "otlp_http_metric_exporter" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.
|
|
12
|
+
*
|
|
13
|
+
* OTLP metric exporter over HTTP with protobuf serialization
|
|
14
|
+
*
|
|
15
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
16
|
+
*/
|
|
17
|
+
export const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER = 'otlp_http_metric_exporter';
|
|
18
|
+
//# 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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAC9D,2BAAoC,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 * Enum value \"otlp_http_metric_exporter\" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.\n *\n * OTLP metric exporter over HTTP with protobuf serialization\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER =\n 'otlp_http_metric_exporter' as const;\n"]}
|
package/build/esm/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/esm/version.js
CHANGED
package/build/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,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"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MeterProvider } from '@opentelemetry/api';
|
|
1
2
|
import type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';
|
|
2
3
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
3
4
|
import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
@@ -5,6 +6,12 @@ import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
|
5
6
|
* Collector Metric Exporter for Web
|
|
6
7
|
*/
|
|
7
8
|
export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
9
|
+
private readonly _url;
|
|
8
10
|
constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
13
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
14
|
+
*/
|
|
15
|
+
setSelfObsMeterProvider(meterProvider: MeterProvider): void;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=OTLPMetricExporter.d.ts.map
|
|
@@ -3,14 +3,24 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
6
|
-
import { JsonMetricsSerializer } from '@opentelemetry/otlp-transformer';
|
|
7
|
-
import { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';
|
|
6
|
+
import { JsonMetricsSerializer, MetricsExporterMetricsHelper, } from '@opentelemetry/otlp-transformer';
|
|
7
|
+
import { createLegacyOtlpBrowserExportDelegate, createLegacyOtlpBrowserExporterMetrics, } from '@opentelemetry/otlp-exporter-base/browser-http';
|
|
8
|
+
import { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';
|
|
8
9
|
/**
|
|
9
10
|
* Collector Metric Exporter for Web
|
|
10
11
|
*/
|
|
11
12
|
export class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
13
|
+
_url;
|
|
12
14
|
constructor(config) {
|
|
13
|
-
super(createLegacyOtlpBrowserExportDelegate(config ?? {}, JsonMetricsSerializer, 'v1/metrics', { 'Content-Type': 'application/json' }), config);
|
|
15
|
+
super(createLegacyOtlpBrowserExportDelegate(config ?? {}, JsonMetricsSerializer, OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, config?.selfObsMeterProvider, 'v1/metrics', { 'Content-Type': 'application/json' }), config);
|
|
16
|
+
this._url = config?.url;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
20
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
21
|
+
*/
|
|
22
|
+
setSelfObsMeterProvider(meterProvider) {
|
|
23
|
+
this.setMetrics(createLegacyOtlpBrowserExporterMetrics(OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, this._url, meterProvider));
|
|
14
24
|
}
|
|
15
25
|
}
|
|
16
26
|
//# sourceMappingURL=OTLPMetricExporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qCAAqC,EACrC,sCAAsC,GACvC,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,mDAAmD,EAAE,MAAM,eAAe,CAAC;AAEpF;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,sBAAsB;IAC3C,IAAI,CAAqB;IAC1C,YAAY,MAA2D;QACrE,KAAK,CACH,qCAAqC,CACnC,MAAM,IAAI,EAAE,EACZ,qBAAqB,EACrB,mDAAmD,EACnD,4BAA4B,EAC5B,MAAM,EAAE,oBAAoB,EAC5B,YAAY,EACZ,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,EACD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,aAA4B;QAClD,IAAI,CAAC,UAAU,CACb,sCAAsC,CACpC,mDAAmD,EACnD,4BAA4B,EAC5B,IAAI,CAAC,IAAI,EACT,aAAa,CACd,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { type MeterProvider } from '@opentelemetry/api';\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n JsonMetricsSerializer,\n MetricsExporterMetricsHelper,\n} from '@opentelemetry/otlp-transformer';\nimport {\n createLegacyOtlpBrowserExportDelegate,\n createLegacyOtlpBrowserExporterMetrics,\n} from '@opentelemetry/otlp-exporter-base/browser-http';\n\nimport { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';\n\n/**\n * Collector Metric Exporter for Web\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n private readonly _url: string | undefined;\n constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config ?? {},\n JsonMetricsSerializer,\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n config?.selfObsMeterProvider,\n 'v1/metrics',\n { 'Content-Type': 'application/json' }\n ),\n config\n );\n this._url = config?.url;\n }\n\n /**\n * Sets the meter provider to use to collect metrics for the exporter itself.\n * @experimental This method is experimental and is subject to breaking changes in minor releases.\n */\n setSelfObsMeterProvider(meterProvider: MeterProvider) {\n this.setMetrics(\n createLegacyOtlpBrowserExporterMetrics(\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n this._url,\n meterProvider\n )\n );\n }\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MeterProvider } from '@opentelemetry/api';
|
|
1
2
|
import type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';
|
|
2
3
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
3
4
|
import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
@@ -5,6 +6,12 @@ import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-ba
|
|
|
5
6
|
* OTLP Metric Exporter for Node.js
|
|
6
7
|
*/
|
|
7
8
|
export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
9
|
+
private readonly _url;
|
|
8
10
|
constructor(config?: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
13
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
14
|
+
*/
|
|
15
|
+
setSelfObsMeterProvider(meterProvider: MeterProvider): void;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=OTLPMetricExporter.d.ts.map
|
|
@@ -3,16 +3,26 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
6
|
-
import { JsonMetricsSerializer } from '@opentelemetry/otlp-transformer';
|
|
7
|
-
import { convertLegacyHttpOptions, createOtlpHttpExportDelegate, } from '@opentelemetry/otlp-exporter-base/node-http';
|
|
6
|
+
import { JsonMetricsSerializer, MetricsExporterMetricsHelper, } from '@opentelemetry/otlp-transformer';
|
|
7
|
+
import { convertLegacyHttpOptions, createOtlpHttpExportDelegate, createOtlpHttpExporterMetrics, } from '@opentelemetry/otlp-exporter-base/node-http';
|
|
8
|
+
import { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';
|
|
8
9
|
/**
|
|
9
10
|
* OTLP Metric Exporter for Node.js
|
|
10
11
|
*/
|
|
11
12
|
export class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
13
|
+
_url;
|
|
12
14
|
constructor(config) {
|
|
13
15
|
super(createOtlpHttpExportDelegate(convertLegacyHttpOptions(config ?? {}, 'METRICS', 'v1/metrics', {
|
|
14
16
|
'Content-Type': 'application/json',
|
|
15
|
-
}), JsonMetricsSerializer), config);
|
|
17
|
+
}), JsonMetricsSerializer, OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, config?.selfObsMeterProvider), config);
|
|
18
|
+
this._url = config?.url;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
22
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
23
|
+
*/
|
|
24
|
+
setSelfObsMeterProvider(meterProvider) {
|
|
25
|
+
this.setMetrics(createOtlpHttpExporterMetrics(OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, MetricsExporterMetricsHelper, this._url, meterProvider));
|
|
16
26
|
}
|
|
17
27
|
}
|
|
18
28
|
//# sourceMappingURL=OTLPMetricExporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPMetricExporter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EACL,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,mDAAmD,EAAE,MAAM,eAAe,CAAC;AAEpF;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,sBAAsB;IAC3C,IAAI,CAAqB;IAC1C,YAAY,MAA+D;QACzE,KAAK,CACH,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,IAAI,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE;YAC9D,cAAc,EAAE,kBAAkB;SACnC,CAAC,EACF,qBAAqB,EACrB,mDAAmD,EACnD,4BAA4B,EAC5B,MAAM,EAAE,oBAAoB,CAC7B,EACD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,aAA4B;QAClD,IAAI,CAAC,UAAU,CACb,6BAA6B,CAC3B,mDAAmD,EACnD,4BAA4B,EAC5B,IAAI,CAAC,IAAI,EACT,aAAa,CACd,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { type MeterProvider } from '@opentelemetry/api';\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n JsonMetricsSerializer,\n MetricsExporterMetricsHelper,\n} from '@opentelemetry/otlp-transformer';\nimport {\n convertLegacyHttpOptions,\n createOtlpHttpExportDelegate,\n createOtlpHttpExporterMetrics,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\nimport { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';\n\n/**\n * OTLP Metric Exporter for Node.js\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n private readonly _url: string | undefined;\n constructor(config?: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config ?? {}, 'METRICS', 'v1/metrics', {\n 'Content-Type': 'application/json',\n }),\n JsonMetricsSerializer,\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n config?.selfObsMeterProvider\n ),\n config\n );\n this._url = config?.url;\n }\n\n /**\n * Sets the meter provider to use to collect metrics for the exporter itself.\n * @experimental This method is experimental and is subject to breaking changes in minor releases.\n */\n setSelfObsMeterProvider(meterProvider: MeterProvider) {\n this.setMetrics(\n createOtlpHttpExporterMetrics(\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n this._url,\n meterProvider\n )\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum value "otlp_http_metric_exporter" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.
|
|
3
|
+
*
|
|
4
|
+
* OTLP metric exporter over HTTP with protobuf serialization
|
|
5
|
+
*
|
|
6
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER: "otlp_http_metric_exporter";
|
|
9
|
+
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* This file contains a copy of unstable semantic convention definitions
|
|
7
|
+
* used by this package.
|
|
8
|
+
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Enum value "otlp_http_metric_exporter" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.
|
|
12
|
+
*
|
|
13
|
+
* OTLP metric exporter over HTTP with protobuf serialization
|
|
14
|
+
*
|
|
15
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
16
|
+
*/
|
|
17
|
+
export const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER = 'otlp_http_metric_exporter';
|
|
18
|
+
//# 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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mDAAmD,GAC9D,2BAAoC,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 * Enum value \"otlp_http_metric_exporter\" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.\n *\n * OTLP metric exporter over HTTP with protobuf serialization\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER =\n 'otlp_http_metric_exporter' as const;\n"]}
|
|
@@ -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/esnext/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,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"]}
|
|
@@ -10,5 +10,5 @@ var AggregationTemporalityPreference;
|
|
|
10
10
|
AggregationTemporalityPreference[AggregationTemporalityPreference["DELTA"] = 0] = "DELTA";
|
|
11
11
|
AggregationTemporalityPreference[AggregationTemporalityPreference["CUMULATIVE"] = 1] = "CUMULATIVE";
|
|
12
12
|
AggregationTemporalityPreference[AggregationTemporalityPreference["LOWMEMORY"] = 2] = "LOWMEMORY";
|
|
13
|
-
})(AggregationTemporalityPreference
|
|
13
|
+
})(AggregationTemporalityPreference || (exports.AggregationTemporalityPreference = AggregationTemporalityPreference = {}));
|
|
14
14
|
//# sourceMappingURL=OTLPMetricExporterOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporterOptions.js","sourceRoot":"","sources":["../../src/OTLPMetricExporterOptions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAeH,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC1C,yFAAK,CAAA;IACL,mGAAU,CAAA;IACV,iGAAS,CAAA;AACX,CAAC,EAJW,gCAAgC,
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporterOptions.js","sourceRoot":"","sources":["../../src/OTLPMetricExporterOptions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAeH,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC1C,yFAAK,CAAA;IACL,mGAAU,CAAA;IACV,iGAAS,CAAA;AACX,CAAC,EAJW,gCAAgC,gDAAhC,gCAAgC,QAI3C","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type {\n AggregationTemporality,\n AggregationSelector,\n} from '@opentelemetry/sdk-metrics';\n\nexport interface OTLPMetricExporterOptions extends OTLPExporterConfigBase {\n temporalityPreference?:\n | AggregationTemporalityPreference\n | AggregationTemporality;\n aggregationPreference?: AggregationSelector;\n}\n\nexport enum AggregationTemporalityPreference {\n DELTA,\n CUMULATIVE,\n LOWMEMORY,\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MeterProvider } from '@opentelemetry/api';
|
|
1
2
|
import type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';
|
|
2
3
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
3
4
|
import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
@@ -5,6 +6,12 @@ import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
|
5
6
|
* Collector Metric Exporter for Web
|
|
6
7
|
*/
|
|
7
8
|
export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
9
|
+
private readonly _url;
|
|
8
10
|
constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
13
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
14
|
+
*/
|
|
15
|
+
setSelfObsMeterProvider(meterProvider: MeterProvider): void;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=OTLPMetricExporter.d.ts.map
|
|
@@ -8,12 +8,22 @@ exports.OTLPMetricExporter = void 0;
|
|
|
8
8
|
const OTLPMetricExporterBase_1 = require("../../OTLPMetricExporterBase");
|
|
9
9
|
const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
|
|
10
10
|
const browser_http_1 = require("@opentelemetry/otlp-exporter-base/browser-http");
|
|
11
|
+
const semconv_1 = require("../../semconv");
|
|
11
12
|
/**
|
|
12
13
|
* Collector Metric Exporter for Web
|
|
13
14
|
*/
|
|
14
15
|
class OTLPMetricExporter extends OTLPMetricExporterBase_1.OTLPMetricExporterBase {
|
|
16
|
+
_url;
|
|
15
17
|
constructor(config) {
|
|
16
|
-
super((0, browser_http_1.createLegacyOtlpBrowserExportDelegate)(config ?? {}, otlp_transformer_1.JsonMetricsSerializer, 'v1/metrics', { 'Content-Type': 'application/json' }), config);
|
|
18
|
+
super((0, browser_http_1.createLegacyOtlpBrowserExportDelegate)(config ?? {}, otlp_transformer_1.JsonMetricsSerializer, semconv_1.OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, otlp_transformer_1.MetricsExporterMetricsHelper, config?.selfObsMeterProvider, 'v1/metrics', { 'Content-Type': 'application/json' }), config);
|
|
19
|
+
this._url = config?.url;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
23
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
24
|
+
*/
|
|
25
|
+
setSelfObsMeterProvider(meterProvider) {
|
|
26
|
+
this.setMetrics((0, browser_http_1.createLegacyOtlpBrowserExporterMetrics)(semconv_1.OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, otlp_transformer_1.MetricsExporterMetricsHelper, this._url, meterProvider));
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
exports.OTLPMetricExporter = OTLPMetricExporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,yEAAsE;AAEtE,sEAGyC;AACzC,iFAGwD;AAExD,2CAAoF;AAEpF;;GAEG;AACH,MAAa,kBAAmB,SAAQ,+CAAsB;IAC3C,IAAI,CAAqB;IAC1C,YAAY,MAA2D;QACrE,KAAK,CACH,IAAA,oDAAqC,EACnC,MAAM,IAAI,EAAE,EACZ,wCAAqB,EACrB,6DAAmD,EACnD,+CAA4B,EAC5B,MAAM,EAAE,oBAAoB,EAC5B,YAAY,EACZ,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,EACD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,aAA4B;QAClD,IAAI,CAAC,UAAU,CACb,IAAA,qDAAsC,EACpC,6DAAmD,EACnD,+CAA4B,EAC5B,IAAI,CAAC,IAAI,EACT,aAAa,CACd,CACF,CAAC;IACJ,CAAC;CACF;AAhCD,gDAgCC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { type MeterProvider } from '@opentelemetry/api';\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n JsonMetricsSerializer,\n MetricsExporterMetricsHelper,\n} from '@opentelemetry/otlp-transformer';\nimport {\n createLegacyOtlpBrowserExportDelegate,\n createLegacyOtlpBrowserExporterMetrics,\n} from '@opentelemetry/otlp-exporter-base/browser-http';\n\nimport { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';\n\n/**\n * Collector Metric Exporter for Web\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n private readonly _url: string | undefined;\n constructor(config?: OTLPExporterConfigBase & OTLPMetricExporterOptions) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config ?? {},\n JsonMetricsSerializer,\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n config?.selfObsMeterProvider,\n 'v1/metrics',\n { 'Content-Type': 'application/json' }\n ),\n config\n );\n this._url = config?.url;\n }\n\n /**\n * Sets the meter provider to use to collect metrics for the exporter itself.\n * @experimental This method is experimental and is subject to breaking changes in minor releases.\n */\n setSelfObsMeterProvider(meterProvider: MeterProvider) {\n this.setMetrics(\n createLegacyOtlpBrowserExporterMetrics(\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n this._url,\n meterProvider\n )\n );\n }\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MeterProvider } from '@opentelemetry/api';
|
|
1
2
|
import type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';
|
|
2
3
|
import { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';
|
|
3
4
|
import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
|
|
@@ -5,6 +6,12 @@ import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-ba
|
|
|
5
6
|
* OTLP Metric Exporter for Node.js
|
|
6
7
|
*/
|
|
7
8
|
export declare class OTLPMetricExporter extends OTLPMetricExporterBase {
|
|
9
|
+
private readonly _url;
|
|
8
10
|
constructor(config?: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
13
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
14
|
+
*/
|
|
15
|
+
setSelfObsMeterProvider(meterProvider: MeterProvider): void;
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=OTLPMetricExporter.d.ts.map
|
|
@@ -8,14 +8,24 @@ exports.OTLPMetricExporter = void 0;
|
|
|
8
8
|
const OTLPMetricExporterBase_1 = require("../../OTLPMetricExporterBase");
|
|
9
9
|
const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
|
|
10
10
|
const node_http_1 = require("@opentelemetry/otlp-exporter-base/node-http");
|
|
11
|
+
const semconv_1 = require("../../semconv");
|
|
11
12
|
/**
|
|
12
13
|
* OTLP Metric Exporter for Node.js
|
|
13
14
|
*/
|
|
14
15
|
class OTLPMetricExporter extends OTLPMetricExporterBase_1.OTLPMetricExporterBase {
|
|
16
|
+
_url;
|
|
15
17
|
constructor(config) {
|
|
16
18
|
super((0, node_http_1.createOtlpHttpExportDelegate)((0, node_http_1.convertLegacyHttpOptions)(config ?? {}, 'METRICS', 'v1/metrics', {
|
|
17
19
|
'Content-Type': 'application/json',
|
|
18
|
-
}), otlp_transformer_1.JsonMetricsSerializer), config);
|
|
20
|
+
}), otlp_transformer_1.JsonMetricsSerializer, semconv_1.OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, otlp_transformer_1.MetricsExporterMetricsHelper, config?.selfObsMeterProvider), config);
|
|
21
|
+
this._url = config?.url;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Sets the meter provider to use to collect metrics for the exporter itself.
|
|
25
|
+
* @experimental This method is experimental and is subject to breaking changes in minor releases.
|
|
26
|
+
*/
|
|
27
|
+
setSelfObsMeterProvider(meterProvider) {
|
|
28
|
+
this.setMetrics((0, node_http_1.createOtlpHttpExporterMetrics)(semconv_1.OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER, otlp_transformer_1.MetricsExporterMetricsHelper, this._url, meterProvider));
|
|
19
29
|
}
|
|
20
30
|
}
|
|
21
31
|
exports.OTLPMetricExporter = OTLPMetricExporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"OTLPMetricExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPMetricExporter.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,yEAAsE;AAEtE,sEAGyC;AACzC,2EAIqD;AAErD,2CAAoF;AAEpF;;GAEG;AACH,MAAa,kBAAmB,SAAQ,+CAAsB;IAC3C,IAAI,CAAqB;IAC1C,YAAY,MAA+D;QACzE,KAAK,CACH,IAAA,wCAA4B,EAC1B,IAAA,oCAAwB,EAAC,MAAM,IAAI,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE;YAC9D,cAAc,EAAE,kBAAkB;SACnC,CAAC,EACF,wCAAqB,EACrB,6DAAmD,EACnD,+CAA4B,EAC5B,MAAM,EAAE,oBAAoB,CAC7B,EACD,MAAM,CACP,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,MAAM,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACH,uBAAuB,CAAC,aAA4B;QAClD,IAAI,CAAC,UAAU,CACb,IAAA,yCAA6B,EAC3B,6DAAmD,EACnD,+CAA4B,EAC5B,IAAI,CAAC,IAAI,EACT,aAAa,CACd,CACF,CAAC;IACJ,CAAC;CACF;AAhCD,gDAgCC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { type MeterProvider } from '@opentelemetry/api';\nimport type { OTLPMetricExporterOptions } from '../../OTLPMetricExporterOptions';\nimport { OTLPMetricExporterBase } from '../../OTLPMetricExporterBase';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n JsonMetricsSerializer,\n MetricsExporterMetricsHelper,\n} from '@opentelemetry/otlp-transformer';\nimport {\n convertLegacyHttpOptions,\n createOtlpHttpExportDelegate,\n createOtlpHttpExporterMetrics,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\nimport { OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER } from '../../semconv';\n\n/**\n * OTLP Metric Exporter for Node.js\n */\nexport class OTLPMetricExporter extends OTLPMetricExporterBase {\n private readonly _url: string | undefined;\n constructor(config?: OTLPExporterNodeConfigBase & OTLPMetricExporterOptions) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config ?? {}, 'METRICS', 'v1/metrics', {\n 'Content-Type': 'application/json',\n }),\n JsonMetricsSerializer,\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n config?.selfObsMeterProvider\n ),\n config\n );\n this._url = config?.url;\n }\n\n /**\n * Sets the meter provider to use to collect metrics for the exporter itself.\n * @experimental This method is experimental and is subject to breaking changes in minor releases.\n */\n setSelfObsMeterProvider(meterProvider: MeterProvider) {\n this.setMetrics(\n createOtlpHttpExporterMetrics(\n OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER,\n MetricsExporterMetricsHelper,\n this._url,\n meterProvider\n )\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum value "otlp_http_metric_exporter" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.
|
|
3
|
+
*
|
|
4
|
+
* OTLP metric exporter over HTTP with protobuf serialization
|
|
5
|
+
*
|
|
6
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER: "otlp_http_metric_exporter";
|
|
9
|
+
//# sourceMappingURL=semconv.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
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.OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER = 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
|
+
* Enum value "otlp_http_metric_exporter" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.
|
|
15
|
+
*
|
|
16
|
+
* OTLP metric exporter over HTTP with protobuf serialization
|
|
17
|
+
*
|
|
18
|
+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
|
|
19
|
+
*/
|
|
20
|
+
exports.OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER = 'otlp_http_metric_exporter';
|
|
21
|
+
//# 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;;;;;;GAMG;AACU,QAAA,mDAAmD,GAC9D,2BAAoC,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 * Enum value \"otlp_http_metric_exporter\" for attribute {@link ATTR_OTEL_COMPONENT_TYPE}.\n *\n * OTLP metric exporter over HTTP with protobuf serialization\n *\n * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.\n */\nexport const OTEL_COMPONENT_TYPE_VALUE_OTLP_HTTP_METRIC_EXPORTER =\n 'otlp_http_metric_exporter' 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/exporter-metrics-otlp-http",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.222.0-development.0",
|
|
4
4
|
"description": "OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
@@ -67,34 +67,34 @@
|
|
|
67
67
|
"@types/mocha": "10.0.10",
|
|
68
68
|
"@types/node": "18.19.130",
|
|
69
69
|
"@types/sinon": "17.0.4",
|
|
70
|
-
"@types/webpack-env": "1.
|
|
71
|
-
"babel-loader": "10.
|
|
70
|
+
"@types/webpack-env": "1.18.8",
|
|
71
|
+
"babel-loader": "10.1.1",
|
|
72
72
|
"babel-plugin-istanbul": "8.0.0",
|
|
73
73
|
"karma": "6.4.4",
|
|
74
|
-
"karma-chrome-launcher": "3.
|
|
74
|
+
"karma-chrome-launcher": "3.2.0",
|
|
75
75
|
"karma-coverage": "2.2.1",
|
|
76
76
|
"karma-mocha": "2.0.1",
|
|
77
77
|
"karma-spec-reporter": "0.0.36",
|
|
78
78
|
"karma-webpack": "5.0.1",
|
|
79
|
-
"mocha": "11.
|
|
79
|
+
"mocha": "11.8.0",
|
|
80
80
|
"nyc": "17.1.0",
|
|
81
81
|
"sinon": "18.0.1",
|
|
82
82
|
"ts-loader": "9.5.7",
|
|
83
|
-
"typescript": "5.
|
|
84
|
-
"webpack": "5.
|
|
85
|
-
"webpack-cli": "7.
|
|
83
|
+
"typescript": "5.2.2",
|
|
84
|
+
"webpack": "5.108.4",
|
|
85
|
+
"webpack-cli": "7.2.2"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@opentelemetry/api": "^1.3.0"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@opentelemetry/core": "2.
|
|
92
|
-
"@opentelemetry/otlp-exporter-base": "0.
|
|
93
|
-
"@opentelemetry/otlp-transformer": "0.
|
|
94
|
-
"@opentelemetry/resources": "2.
|
|
95
|
-
"@opentelemetry/sdk-metrics": "2.
|
|
91
|
+
"@opentelemetry/core": "2.11.0-development.0",
|
|
92
|
+
"@opentelemetry/otlp-exporter-base": "0.222.0-development.0",
|
|
93
|
+
"@opentelemetry/otlp-transformer": "0.222.0-development.0",
|
|
94
|
+
"@opentelemetry/resources": "2.11.0-development.0",
|
|
95
|
+
"@opentelemetry/sdk-metrics": "2.11.0-development.0"
|
|
96
96
|
},
|
|
97
97
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-http",
|
|
98
98
|
"sideEffects": false,
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "f41805e769ba10fb6dae72a4b7a5a3dc67cca82e"
|
|
100
100
|
}
|