@opentelemetry/exporter-trace-otlp-http 0.27.0 → 0.29.1

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.
Files changed (119) hide show
  1. package/README.md +47 -21
  2. package/build/esm/index.d.ts +0 -4
  3. package/build/esm/index.js +0 -5
  4. package/build/esm/index.js.map +1 -1
  5. package/build/esm/platform/browser/OTLPTraceExporter.d.ts +4 -5
  6. package/build/esm/platform/browser/OTLPTraceExporter.js +7 -8
  7. package/build/esm/platform/browser/OTLPTraceExporter.js.map +1 -1
  8. package/build/esm/platform/browser/index.d.ts +0 -1
  9. package/build/esm/platform/browser/index.js +0 -1
  10. package/build/esm/platform/browser/index.js.map +1 -1
  11. package/build/esm/platform/index.d.ts +0 -1
  12. package/build/esm/platform/index.js +0 -1
  13. package/build/esm/platform/index.js.map +1 -1
  14. package/build/esm/platform/node/OTLPTraceExporter.d.ts +5 -5
  15. package/build/esm/platform/node/OTLPTraceExporter.js +8 -8
  16. package/build/esm/platform/node/OTLPTraceExporter.js.map +1 -1
  17. package/build/esm/platform/node/index.d.ts +0 -3
  18. package/build/esm/platform/node/index.js +0 -3
  19. package/build/esm/platform/node/index.js.map +1 -1
  20. package/build/esm/version.d.ts +1 -1
  21. package/build/esm/version.js +1 -1
  22. package/build/esm/version.js.map +1 -1
  23. package/build/esnext/index.d.ts +2 -0
  24. package/build/esnext/index.js +17 -0
  25. package/build/esnext/index.js.map +1 -0
  26. package/build/esnext/platform/browser/OTLPTraceExporter.d.ts +12 -0
  27. package/build/esnext/platform/browser/OTLPTraceExporter.js +42 -0
  28. package/build/esnext/platform/browser/OTLPTraceExporter.js.map +1 -0
  29. package/build/esnext/platform/browser/index.d.ts +2 -0
  30. package/build/esnext/platform/browser/index.js +17 -0
  31. package/build/esnext/platform/browser/index.js.map +1 -0
  32. package/build/esnext/platform/index.d.ts +2 -0
  33. package/build/esnext/platform/index.js +17 -0
  34. package/build/esnext/platform/index.js.map +1 -0
  35. package/build/esnext/platform/node/OTLPTraceExporter.d.ts +13 -0
  36. package/build/esnext/platform/node/OTLPTraceExporter.js +43 -0
  37. package/build/esnext/platform/node/OTLPTraceExporter.js.map +1 -0
  38. package/build/esnext/platform/node/index.d.ts +2 -0
  39. package/build/esnext/platform/node/index.js +17 -0
  40. package/build/esnext/platform/node/index.js.map +1 -0
  41. package/build/esnext/version.d.ts +2 -0
  42. package/build/esnext/version.js +18 -0
  43. package/build/esnext/version.js.map +1 -0
  44. package/build/src/index.d.ts +0 -4
  45. package/build/src/index.js +0 -8
  46. package/build/src/index.js.map +1 -1
  47. package/build/src/platform/browser/OTLPTraceExporter.d.ts +4 -5
  48. package/build/src/platform/browser/OTLPTraceExporter.js +11 -12
  49. package/build/src/platform/browser/OTLPTraceExporter.js.map +1 -1
  50. package/build/src/platform/browser/index.d.ts +0 -1
  51. package/build/src/platform/browser/index.js +0 -1
  52. package/build/src/platform/browser/index.js.map +1 -1
  53. package/build/src/platform/index.d.ts +0 -1
  54. package/build/src/platform/index.js +0 -3
  55. package/build/src/platform/index.js.map +1 -1
  56. package/build/src/platform/node/OTLPTraceExporter.d.ts +5 -5
  57. package/build/src/platform/node/OTLPTraceExporter.js +12 -12
  58. package/build/src/platform/node/OTLPTraceExporter.js.map +1 -1
  59. package/build/src/platform/node/index.d.ts +0 -3
  60. package/build/src/platform/node/index.js +0 -3
  61. package/build/src/platform/node/index.js.map +1 -1
  62. package/build/src/version.d.ts +1 -1
  63. package/build/src/version.js +1 -1
  64. package/build/src/version.js.map +1 -1
  65. package/package.json +32 -22
  66. package/build/esm/OTLPExporterBase.d.ts +0 -36
  67. package/build/esm/OTLPExporterBase.js +0 -114
  68. package/build/esm/OTLPExporterBase.js.map +0 -1
  69. package/build/esm/platform/browser/OTLPExporterBrowserBase.d.ts +0 -18
  70. package/build/esm/platform/browser/OTLPExporterBrowserBase.js +0 -91
  71. package/build/esm/platform/browser/OTLPExporterBrowserBase.js.map +0 -1
  72. package/build/esm/platform/browser/util.d.ts +0 -17
  73. package/build/esm/platform/browser/util.js +0 -77
  74. package/build/esm/platform/browser/util.js.map +0 -1
  75. package/build/esm/platform/node/OTLPExporterNodeBase.d.ts +0 -20
  76. package/build/esm/platform/node/OTLPExporterNodeBase.js +0 -82
  77. package/build/esm/platform/node/OTLPExporterNodeBase.js.map +0 -1
  78. package/build/esm/platform/node/types.d.ts +0 -17
  79. package/build/esm/platform/node/types.js +0 -6
  80. package/build/esm/platform/node/types.js.map +0 -1
  81. package/build/esm/platform/node/util.d.ts +0 -17
  82. package/build/esm/platform/node/util.js +0 -113
  83. package/build/esm/platform/node/util.js.map +0 -1
  84. package/build/esm/transform.d.ts +0 -80
  85. package/build/esm/transform.js +0 -271
  86. package/build/esm/transform.js.map +0 -1
  87. package/build/esm/types.d.ts +0 -241
  88. package/build/esm/types.js +0 -176
  89. package/build/esm/types.js.map +0 -1
  90. package/build/esm/util.d.ts +0 -7
  91. package/build/esm/util.js +0 -40
  92. package/build/esm/util.js.map +0 -1
  93. package/build/src/OTLPExporterBase.d.ts +0 -36
  94. package/build/src/OTLPExporterBase.js +0 -113
  95. package/build/src/OTLPExporterBase.js.map +0 -1
  96. package/build/src/platform/browser/OTLPExporterBrowserBase.d.ts +0 -18
  97. package/build/src/platform/browser/OTLPExporterBrowserBase.js +0 -74
  98. package/build/src/platform/browser/OTLPExporterBrowserBase.js.map +0 -1
  99. package/build/src/platform/browser/util.d.ts +0 -17
  100. package/build/src/platform/browser/util.js +0 -70
  101. package/build/src/platform/browser/util.js.map +0 -1
  102. package/build/src/platform/node/OTLPExporterNodeBase.d.ts +0 -20
  103. package/build/src/platform/node/OTLPExporterNodeBase.js +0 -65
  104. package/build/src/platform/node/OTLPExporterNodeBase.js.map +0 -1
  105. package/build/src/platform/node/types.d.ts +0 -17
  106. package/build/src/platform/node/types.js +0 -9
  107. package/build/src/platform/node/types.js.map +0 -1
  108. package/build/src/platform/node/util.d.ts +0 -17
  109. package/build/src/platform/node/util.js +0 -107
  110. package/build/src/platform/node/util.js.map +0 -1
  111. package/build/src/transform.d.ts +0 -80
  112. package/build/src/transform.js +0 -282
  113. package/build/src/transform.js.map +0 -1
  114. package/build/src/types.d.ts +0 -241
  115. package/build/src/types.js +0 -160
  116. package/build/src/types.js.map +0 -1
  117. package/build/src/util.d.ts +0 -7
  118. package/build/src/util.js +0 -43
  119. package/build/src/util.js.map +0 -1
package/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  # OpenTelemetry Collector Exporter for web and node
2
2
 
3
3
  [![NPM Published Version][npm-img]][npm-url]
4
- [![dependencies][dependencies-image]][dependencies-url]
5
- [![devDependencies][devDependencies-image]][devDependencies-url]
6
4
  [![Apache License][license-image]][license-image]
7
5
 
8
- This module provides exporter for web and node to be used with [opentelemetry-collector][opentelemetry-collector-url] - last tested with version **0.25.0**.
6
+ This module provides exporter for web and node to be used with [opentelemetry-collector][opentelemetry-collector-url]
7
+ Compatible with [opentelemetry-collector][opentelemetry-collector-url] versions `>=0.48 <=0.50`.
9
8
 
10
9
  ## Installation
11
10
 
@@ -29,7 +28,7 @@ import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
29
28
  import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
30
29
 
31
30
  const collectorOptions = {
32
- url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:55681/v1/traces
31
+ url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:4318/v1/traces
33
32
  headers: {}, // an optional object containing custom headers to be sent with each request
34
33
  concurrencyLimit: 10, // an optional limit on pending requests
35
34
  };
@@ -58,7 +57,7 @@ const { BasicTracerProvider, BatchSpanProcessor } = require('@opentelemetry/sdk-
58
57
  const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http');
59
58
 
60
59
  const collectorOptions = {
61
- url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:55681/v1/traces
60
+ url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:4318/v1/traces
62
61
  headers: {
63
62
  foo: 'bar'
64
63
  }, // an optional object containing custom headers to be sent with each request will only work with http
@@ -88,19 +87,19 @@ For PROTOBUF please check [npm-url-proto]
88
87
 
89
88
  ## Configuration options as environment variables
90
89
 
91
- Instead of providing options to `OTLPMetricExporter` and `OTLPTraceExporter` explicitly, environment variables may be provided instead.
90
+ Instead of providing options to `OTLPTraceExporter` explicitly, environment variables may be provided instead.
92
91
 
93
92
  ```sh
94
- OTEL_EXPORTER_OTLP_ENDPOINT=https://localhost:4317
93
+ OTEL_EXPORTER_OTLP_ENDPOINT=https://localhost:4318
95
94
  # this will automatically append the version and signal path
96
- # e.g. https://localhost:4317/v1/traces for `OTLPTraceExporter` and https://localhost:4317/v1/metrics for `OTLPMetricExporter`
95
+ # e.g. https://localhost:4318/v1/traces for `OTLPTraceExporter` and https://localhost:4318/v1/metrics for `OTLPMetricExporter`
97
96
  ```
98
97
 
99
98
  If the trace and metric exporter endpoints have different providers, the env var for per-signal endpoints are available to use
100
99
 
101
100
  ```sh
102
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://trace-service:4317/v1/traces
103
- OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://metric-service:4317/v1/metrics
101
+ OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://trace-service:4318/v1/traces
102
+ OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://metric-service:4318/v1/metrics
104
103
  # version and signal needs to be explicit
105
104
  ```
106
105
 
@@ -108,17 +107,48 @@ OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=https://metric-service:4317/v1/metrics
108
107
 
109
108
  For more details, see [OpenTelemetry Specification on Protocol Exporter][opentelemetry-spec-protocol-exporter].
110
109
 
110
+ ## Exporter Timeout Configuration
111
+
112
+ The OTLPTraceExporter has a timeout configuration option which is the maximum time, in milliseconds, the OTLP exporter will wait for each batch export. The default value is 10000ms.
113
+
114
+ To override the default timeout duration, use the following options:
115
+
116
+ + Set with environment variables:
117
+
118
+ | Environment variable | Description |
119
+ |----------------------|-------------|
120
+ | OTEL_EXPORTER_OTLP_TRACES_TIMEOUT | The maximum waiting time, in milliseconds, allowed to send each OTLP trace batch. Default is 10000. |
121
+ | OTEL_EXPORTER_OTLP_TIMEOUT | The maximum waiting time, in milliseconds, allowed to send each OTLP trace and metric batch. Default is 10000. |
122
+
123
+ > `OTEL_EXPORTER_OTLP_TRACES_TIMEOUT` takes precedence and overrides `OTEL_EXPORTER_OTLP_TIMEOUT`.
124
+
125
+ + Provide `timeoutMillis` to OTLPTraceExporter with `collectorOptions`:
126
+
127
+ ```js
128
+ const collectorOptions = {
129
+ timeoutMillis: 15000,
130
+ url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:4318/v1/traces
131
+ headers: {
132
+ foo: 'bar'
133
+ }, // an optional object containing custom headers to be sent with each request will only work with http
134
+ concurrencyLimit: 10, // an optional limit on pending requests
135
+ };
136
+
137
+ const exporter = new OTLPTraceExporter(collectorOptions);
138
+ ```
139
+
140
+ > Providing `timeoutMillis` with `collectorOptions` takes precedence and overrides timeout set with environment variables.
141
+
111
142
  ## Running opentelemetry-collector locally to see the traces
112
143
 
113
- 1. Go to examples/otlp-exporter-node
114
- 2. run `npm run docker:start`
115
- 3. Open page at `http://localhost:9411/zipkin/` to observe the traces
144
+ 1. Go to `examples/otlp-exporter-node`
145
+ 2. Follow the instructions there to inspect traces.
116
146
 
117
147
  ## Useful links
118
148
 
119
- - For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
120
- - For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
121
- - For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
149
+ + For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
150
+ + For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
151
+ + For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
122
152
 
123
153
  ## License
124
154
 
@@ -127,10 +157,6 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
127
157
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
128
158
  [license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE
129
159
  [license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
130
- [dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js.svg?path=packages%2Fopentelemetry-exporter-trace-otlp-http
131
- [dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-exporter-trace-otlp-http
132
- [devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js.svg?path=packages%2Fopentelemetry-exporter-trace-otlp-http&type=dev
133
- [devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js?path=packages%2Fopentelemetry-exporter-trace-otlp-http&type=dev
134
160
  [npm-url]: https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http
135
161
  [npm-url-grpc]: https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-grpc
136
162
  [npm-url-proto]: https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-proto
@@ -138,4 +164,4 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
138
164
  [opentelemetry-collector-url]: https://github.com/open-telemetry/opentelemetry-collector
139
165
  [opentelemetry-spec-protocol-exporter]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
140
166
  [semconv-resource-service-name]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/README.md#service
141
- [metrics-exporter-url]: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-metrics-otlp-http
167
+ [metrics-exporter-url]: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-exporter-metrics-otlp-http
@@ -1,6 +1,2 @@
1
- export * from './OTLPExporterBase';
2
1
  export * from './platform';
3
- export * as otlpTypes from './types';
4
- export { toCollectorResource, toOTLPExportTraceServiceRequest } from './transform';
5
- export { appendResourcePathToUrlIfNotPresent } from './util';
6
2
  //# sourceMappingURL=index.d.ts.map
@@ -13,10 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * from './OTLPExporterBase';
17
16
  export * from './platform';
18
- import * as otlpTypes_1 from './types';
19
- export { otlpTypes_1 as otlpTypes };
20
- export { toCollectorResource, toOTLPExportTraceServiceRequest } from './transform';
21
- export { appendResourcePathToUrlIfNotPresent } from './util';
22
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;6BACA,SAAS;wBAAxB,SAAS;AACrB,OAAO,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,mCAAmC,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPExporterBase';\nexport * from './platform';\nexport * as otlpTypes from './types';\nexport { toCollectorResource, toOTLPExportTraceServiceRequest } from './transform';\nexport { appendResourcePathToUrlIfNotPresent } from './util';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './platform';\n"]}
@@ -1,13 +1,12 @@
1
- import { OTLPExporterConfigBase } from '../../types';
2
- import { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';
3
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
4
- import * as otlpTypes from '../../types';
2
+ import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
5
4
  /**
6
5
  * Collector Trace Exporter for Web
7
6
  */
8
- export declare class OTLPTraceExporter extends OTLPExporterBrowserBase<ReadableSpan, otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest> implements SpanExporter {
7
+ export declare class OTLPTraceExporter extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceRequest> implements SpanExporter {
9
8
  constructor(config?: OTLPExporterConfigBase);
10
- convert(spans: ReadableSpan[]): otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest;
9
+ convert(spans: ReadableSpan[]): IExportTraceServiceRequest;
11
10
  getDefaultUrl(config: OTLPExporterConfigBase): string;
12
11
  }
13
12
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -28,12 +28,11 @@ var __extends = (this && this.__extends) || (function () {
28
28
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29
29
  };
30
30
  })();
31
- import { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';
32
- import { toOTLPExportTraceServiceRequest } from '../../transform';
33
31
  import { getEnv, baggageUtils } from '@opentelemetry/core';
34
- import { appendResourcePathToUrlIfNotPresent } from '../../util';
35
- var DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';
36
- var DEFAULT_COLLECTOR_URL = "http://localhost:55681" + DEFAULT_COLLECTOR_RESOURCE_PATH;
32
+ import { appendResourcePathToUrl, appendRootPathToUrlIfNeeded, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
33
+ import { createExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
34
+ var DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';
35
+ var DEFAULT_COLLECTOR_URL = "http://localhost:4318/" + DEFAULT_COLLECTOR_RESOURCE_PATH;
37
36
  /**
38
37
  * Collector Trace Exporter for Web
39
38
  */
@@ -46,15 +45,15 @@ var OTLPTraceExporter = /** @class */ (function (_super) {
46
45
  return _this;
47
46
  }
48
47
  OTLPTraceExporter.prototype.convert = function (spans) {
49
- return toOTLPExportTraceServiceRequest(spans, this, true);
48
+ return createExportTraceServiceRequest(spans, true);
50
49
  };
51
50
  OTLPTraceExporter.prototype.getDefaultUrl = function (config) {
52
51
  return typeof config.url === 'string'
53
52
  ? config.url
54
53
  : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
55
- ? getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
54
+ ? appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
56
55
  : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
57
- ? appendResourcePathToUrlIfNotPresent(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
56
+ ? appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
58
57
  : DEFAULT_COLLECTOR_URL;
59
58
  };
60
59
  return OTLPTraceExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEjE,IAAM,+BAA+B,GAAG,YAAY,CAAC;AACrD,IAAM,qBAAqB,GAAC,2BAAyB,+BAAiC,CAAC;AAEvF;;GAEG;AACH;IACU,qCAGP;IAED,2BAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;QAA/C,YACE,kBAAM,MAAM,CAAC,SAOd;QANC,KAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAC3B,KAAI,CAAC,QAAQ,EACb,YAAY,CAAC,uBAAuB,CAClC,MAAM,EAAE,CAAC,iCAAiC,CAC3C,CACF,CAAC;;IACJ,CAAC;IACD,mCAAO,GAAP,UACE,KAAqB;QAErB,OAAO,+BAA+B,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED,yCAAa,GAAb,UAAc,MAA8B;QAC1C,OAAO,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YACnC,CAAC,CAAC,MAAM,CAAC,GAAG;YACZ,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC,CAAC,MAAM,GAAG,CAAC;gBACxD,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC;gBAC7C,CAAC,CAAC,MAAM,EAAE,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC;oBACjD,CAAC,CAAC,mCAAmC,CAAC,MAAM,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;oBAC5G,CAAC,CAAC,qBAAqB,CAAC;IAC5B,CAAC;IACH,wBAAC;AAAD,CAAC,AA9BD,CACU,uBAAuB,GA6BhC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { OTLPExporterConfigBase } from '../../types';\nimport { OTLPExporterBrowserBase } from './OTLPExporterBrowserBase';\nimport { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';\nimport { toOTLPExportTraceServiceRequest } from '../../transform';\nimport * as otlpTypes from '../../types';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { appendResourcePathToUrlIfNotPresent } from '../../util';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';\nconst DEFAULT_COLLECTOR_URL=`http://localhost:55681${DEFAULT_COLLECTOR_RESOURCE_PATH}`;\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBrowserBase<\n ReadableSpan,\n otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest\n >\n implements SpanExporter {\n constructor(config: OTLPExporterConfigBase = {}) {\n super(config);\n this._headers = Object.assign(\n this._headers,\n baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS\n )\n );\n }\n convert(\n spans: ReadableSpan[]\n ): otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest {\n return toOTLPExportTraceServiceRequest(spans, this, true);\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return typeof config.url === 'string'\n ? config.url\n : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0\n ? getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT\n : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0\n ? appendResourcePathToUrlIfNotPresent(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : DEFAULT_COLLECTOR_URL;\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAA8B,MAAM,iCAAiC,CAAC;AAE9G,IAAM,+BAA+B,GAAG,WAAW,CAAC;AACpD,IAAM,qBAAqB,GAAG,2BAAyB,+BAAiC,CAAC;AAEzF;;GAEG;AACH;IACU,qCAGP;IAED,2BAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;QAA/C,YACE,kBAAM,MAAM,CAAC,SAOd;QANC,KAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAC3B,KAAI,CAAC,QAAQ,EACb,YAAY,CAAC,uBAAuB,CAClC,MAAM,EAAE,CAAC,iCAAiC,CAC3C,CACF,CAAC;;IACJ,CAAC;IACD,mCAAO,GAAP,UAAQ,KAAqB;QAC3B,OAAO,+BAA+B,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,yCAAa,GAAb,UAAc,MAA8B;QAC1C,OAAO,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YACnC,CAAC,CAAC,MAAM,CAAC,GAAG;YACZ,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC,CAAC,MAAM,GAAG,CAAC;gBACtD,CAAC,CAAC,2BAA2B,CAAC,MAAM,EAAE,CAAC,kCAAkC,EAAE,+BAA+B,CAAC;gBAC3G,CAAC,CAAC,MAAM,EAAE,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC;oBAC/C,CAAC,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;oBAChG,CAAC,CAAC,qBAAqB,CAAC;IAChC,CAAC;IACH,wBAAC;AAAD,CAAC,AA5BD,CACU,uBAAuB,GA2BhC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport {\n OTLPExporterConfigBase,\n appendResourcePathToUrl,\n appendRootPathToUrlIfNeeded,\n OTLPExporterBrowserBase\n} from '@opentelemetry/otlp-exporter-base';\nimport { createExportTraceServiceRequest, IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\nconst DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBrowserBase<\n ReadableSpan,\n IExportTraceServiceRequest\n >\n implements SpanExporter {\n constructor(config: OTLPExporterConfigBase = {}) {\n super(config);\n this._headers = Object.assign(\n this._headers,\n baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS\n )\n );\n }\n convert(spans: ReadableSpan[]): IExportTraceServiceRequest {\n return createExportTraceServiceRequest(spans, true);\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return typeof config.url === 'string'\n ? config.url\n : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0\n ? appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0\n ? appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : DEFAULT_COLLECTOR_URL;\n }\n}\n"]}
@@ -1,3 +1,2 @@
1
1
  export * from './OTLPTraceExporter';
2
- export * from './OTLPExporterBrowserBase';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -14,5 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './OTLPTraceExporter';
17
- export * from './OTLPExporterBrowserBase';
18
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/browser/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPTraceExporter';\nexport * from './OTLPExporterBrowserBase';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/browser/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPTraceExporter';\n"]}
@@ -1,3 +1,2 @@
1
1
  export * from './node';
2
- export { OTLPExporterBrowserBase } from './browser';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -14,5 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './node';
17
- export { OTLPExporterBrowserBase } from './browser';
18
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './node';\nexport { OTLPExporterBrowserBase } from './browser';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './node';\n"]}
@@ -1,13 +1,13 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterNodeBase } from './OTLPExporterNodeBase';
3
- import { OTLPExporterNodeConfigBase } from './types';
4
- import * as otlpTypes from '../../types';
2
+ import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
4
+ import { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
5
5
  /**
6
6
  * Collector Trace Exporter for Node
7
7
  */
8
- export declare class OTLPTraceExporter extends OTLPExporterNodeBase<ReadableSpan, otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest> implements SpanExporter {
8
+ export declare class OTLPTraceExporter extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceRequest> implements SpanExporter {
9
9
  constructor(config?: OTLPExporterNodeConfigBase);
10
- convert(spans: ReadableSpan[]): otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest;
10
+ convert(spans: ReadableSpan[]): IExportTraceServiceRequest;
11
11
  getDefaultUrl(config: OTLPExporterNodeConfigBase): string;
12
12
  }
13
13
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -28,12 +28,12 @@ var __extends = (this && this.__extends) || (function () {
28
28
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29
29
  };
30
30
  })();
31
- import { OTLPExporterNodeBase } from './OTLPExporterNodeBase';
32
- import { toOTLPExportTraceServiceRequest } from '../../transform';
33
31
  import { getEnv, baggageUtils } from '@opentelemetry/core';
34
- import { appendResourcePathToUrlIfNotPresent } from '../../util';
35
- var DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';
36
- var DEFAULT_COLLECTOR_URL = "http://localhost:55681" + DEFAULT_COLLECTOR_RESOURCE_PATH;
32
+ import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
33
+ import { appendResourcePathToUrl, appendRootPathToUrlIfNeeded } from '@opentelemetry/otlp-exporter-base';
34
+ import { createExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
35
+ var DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';
36
+ var DEFAULT_COLLECTOR_URL = "http://localhost:4318/" + DEFAULT_COLLECTOR_RESOURCE_PATH;
37
37
  /**
38
38
  * Collector Trace Exporter for Node
39
39
  */
@@ -46,15 +46,15 @@ var OTLPTraceExporter = /** @class */ (function (_super) {
46
46
  return _this;
47
47
  }
48
48
  OTLPTraceExporter.prototype.convert = function (spans) {
49
- return toOTLPExportTraceServiceRequest(spans, this, true);
49
+ return createExportTraceServiceRequest(spans, true);
50
50
  };
51
51
  OTLPTraceExporter.prototype.getDefaultUrl = function (config) {
52
52
  return typeof config.url === 'string'
53
53
  ? config.url
54
54
  : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
55
- ? getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
55
+ ? appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
56
56
  : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
57
- ? appendResourcePathToUrlIfNotPresent(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
57
+ ? appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
58
58
  : DEFAULT_COLLECTOR_URL;
59
59
  };
60
60
  return OTLPTraceExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEjE,IAAM,+BAA+B,GAAG,YAAY,CAAC;AACrD,IAAM,qBAAqB,GAAC,2BAAyB,+BAAiC,CAAC;AAEvF;;GAEG;AACH;IACU,qCAGP;IAED,2BAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;QAAnD,YACE,kBAAM,MAAM,CAAC,SAOd;QANC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAC1B,KAAI,CAAC,OAAO,EACZ,YAAY,CAAC,uBAAuB,CAClC,MAAM,EAAE,CAAC,iCAAiC,CAC3C,CACF,CAAC;;IACJ,CAAC;IAED,mCAAO,GAAP,UACE,KAAqB;QAErB,OAAO,+BAA+B,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED,yCAAa,GAAb,UAAc,MAAkC;QAC9C,OAAO,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YACnC,CAAC,CAAC,MAAM,CAAC,GAAG;YACZ,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC,CAAC,MAAM,GAAG,CAAC;gBACxD,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC;gBAC7C,CAAC,CAAC,MAAM,EAAE,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC;oBACjD,CAAC,CAAC,mCAAmC,CAAC,MAAM,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;oBAC5G,CAAC,CAAC,qBAAqB,CAAC;IAC5B,CAAC;IACH,wBAAC;AAAD,CAAC,AA/BD,CACU,oBAAoB,GA8B7B","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';\nimport { OTLPExporterNodeBase } from './OTLPExporterNodeBase';\nimport { OTLPExporterNodeConfigBase } from './types';\nimport * as otlpTypes from '../../types';\nimport { toOTLPExportTraceServiceRequest } from '../../transform';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { appendResourcePathToUrlIfNotPresent } from '../../util';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = '/v1/traces';\nconst DEFAULT_COLLECTOR_URL=`http://localhost:55681${DEFAULT_COLLECTOR_RESOURCE_PATH}`;\n\n/**\n * Collector Trace Exporter for Node\n */\nexport class OTLPTraceExporter\n extends OTLPExporterNodeBase<\n ReadableSpan,\n otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest\n >\n implements SpanExporter {\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(config);\n this.headers = Object.assign(\n this.headers,\n baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS\n )\n );\n }\n\n convert(\n spans: ReadableSpan[]\n ): otlpTypes.opentelemetryProto.collector.trace.v1.ExportTraceServiceRequest {\n return toOTLPExportTraceServiceRequest(spans, this, true);\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase) : string {\n return typeof config.url === 'string'\n ? config.url\n : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0\n ? getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT\n : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0\n ? appendResourcePathToUrlIfNotPresent(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : DEFAULT_COLLECTOR_URL;\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAEL,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAA8B,MAAM,iCAAiC,CAAC;AAE9G,IAAM,+BAA+B,GAAG,WAAW,CAAC;AACpD,IAAM,qBAAqB,GAAG,2BAAyB,+BAAiC,CAAC;AAEzF;;GAEG;AACH;IACU,qCACqB;IAE7B,2BAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;QAAnD,YACE,kBAAM,MAAM,CAAC,SAOd;QANC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAC1B,KAAI,CAAC,OAAO,EACZ,YAAY,CAAC,uBAAuB,CAClC,MAAM,EAAE,CAAC,iCAAiC,CAC3C,CACF,CAAC;;IACJ,CAAC;IAED,mCAAO,GAAP,UAAQ,KAAqB;QAC3B,OAAO,+BAA+B,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,yCAAa,GAAb,UAAc,MAAkC;QAC9C,OAAO,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YACnC,CAAC,CAAC,MAAM,CAAC,GAAG;YACZ,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC,CAAC,MAAM,GAAG,CAAC;gBACtD,CAAC,CAAC,2BAA2B,CAAC,MAAM,EAAE,CAAC,kCAAkC,EAAE,+BAA+B,CAAC;gBAC3G,CAAC,CAAC,MAAM,EAAE,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC;oBAC/C,CAAC,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;oBAChG,CAAC,CAAC,qBAAqB,CAAC;IAChC,CAAC;IACH,wBAAC;AAAD,CAAC,AA3BD,CACU,oBAAoB,GA0B7B","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport {\n OTLPExporterNodeConfigBase,\n appendResourcePathToUrl,\n appendRootPathToUrlIfNeeded\n} from '@opentelemetry/otlp-exporter-base';\nimport { createExportTraceServiceRequest, IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\nconst DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;\n\n/**\n * Collector Trace Exporter for Node\n */\nexport class OTLPTraceExporter\n extends OTLPExporterNodeBase<ReadableSpan,\n IExportTraceServiceRequest>\n implements SpanExporter {\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(config);\n this.headers = Object.assign(\n this.headers,\n baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS\n )\n );\n }\n\n convert(spans: ReadableSpan[]): IExportTraceServiceRequest {\n return createExportTraceServiceRequest(spans, true);\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return typeof config.url === 'string'\n ? config.url\n : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0\n ? appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0\n ? appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : DEFAULT_COLLECTOR_URL;\n }\n}\n"]}
@@ -1,5 +1,2 @@
1
1
  export * from './OTLPTraceExporter';
2
- export * from './OTLPExporterNodeBase';
3
- export * from './util';
4
- export * from './types';
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -14,7 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export * from './OTLPTraceExporter';
17
- export * from './OTLPExporterNodeBase';
18
- export * from './util';
19
- export * from './types';
20
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPTraceExporter';\nexport * from './OTLPExporterNodeBase';\nexport * from './util';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPTraceExporter';\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.27.0";
1
+ export declare const VERSION = "0.29.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // this is autogenerated file, see scripts/version-update.js
17
- export var VERSION = '0.27.0';
17
+ export var VERSION = '0.29.1';
18
18
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.27.0';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.29.1';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './platform';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './platform';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,YAAY,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './platform';\n"]}
@@ -0,0 +1,12 @@
1
+ import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
+ import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
4
+ /**
5
+ * Collector Trace Exporter for Web
6
+ */
7
+ export declare class OTLPTraceExporter extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceRequest> implements SpanExporter {
8
+ constructor(config?: OTLPExporterConfigBase);
9
+ convert(spans: ReadableSpan[]): IExportTraceServiceRequest;
10
+ getDefaultUrl(config: OTLPExporterConfigBase): string;
11
+ }
12
+ //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { getEnv, baggageUtils } from '@opentelemetry/core';
17
+ import { appendResourcePathToUrl, appendRootPathToUrlIfNeeded, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
18
+ import { createExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
19
+ const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';
20
+ const DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;
21
+ /**
22
+ * Collector Trace Exporter for Web
23
+ */
24
+ export class OTLPTraceExporter extends OTLPExporterBrowserBase {
25
+ constructor(config = {}) {
26
+ super(config);
27
+ this._headers = Object.assign(this._headers, baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS));
28
+ }
29
+ convert(spans) {
30
+ return createExportTraceServiceRequest(spans, true);
31
+ }
32
+ getDefaultUrl(config) {
33
+ return typeof config.url === 'string'
34
+ ? config.url
35
+ : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0
36
+ ? appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
37
+ : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0
38
+ ? appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)
39
+ : DEFAULT_COLLECTOR_URL;
40
+ }
41
+ }
42
+ //# sourceMappingURL=OTLPTraceExporter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,+BAA+B,EAA8B,MAAM,iCAAiC,CAAC;AAE9G,MAAM,+BAA+B,GAAG,WAAW,CAAC;AACpD,MAAM,qBAAqB,GAAG,yBAAyB,+BAA+B,EAAE,CAAC;AAEzF;;GAEG;AACH,MAAM,OAAO,iBACX,SAAQ,uBAGP;IAED,YAAY,SAAiC,EAAE;QAC7C,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAC3B,IAAI,CAAC,QAAQ,EACb,YAAY,CAAC,uBAAuB,CAClC,MAAM,EAAE,CAAC,iCAAiC,CAC3C,CACF,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,KAAqB;QAC3B,OAAO,+BAA+B,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,aAAa,CAAC,MAA8B;QAC1C,OAAO,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YACnC,CAAC,CAAC,MAAM,CAAC,GAAG;YACZ,CAAC,CAAC,MAAM,EAAE,CAAC,kCAAkC,CAAC,MAAM,GAAG,CAAC;gBACtD,CAAC,CAAC,2BAA2B,CAAC,MAAM,EAAE,CAAC,kCAAkC,EAAE,+BAA+B,CAAC;gBAC3G,CAAC,CAAC,MAAM,EAAE,CAAC,2BAA2B,CAAC,MAAM,GAAG,CAAC;oBAC/C,CAAC,CAAC,uBAAuB,CAAC,MAAM,EAAE,CAAC,2BAA2B,EAAE,+BAA+B,CAAC;oBAChG,CAAC,CAAC,qBAAqB,CAAC;IAChC,CAAC;CACF","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport {\n OTLPExporterConfigBase,\n appendResourcePathToUrl,\n appendRootPathToUrlIfNeeded,\n OTLPExporterBrowserBase\n} from '@opentelemetry/otlp-exporter-base';\nimport { createExportTraceServiceRequest, IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\nconst DEFAULT_COLLECTOR_URL = `http://localhost:4318/${DEFAULT_COLLECTOR_RESOURCE_PATH}`;\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBrowserBase<\n ReadableSpan,\n IExportTraceServiceRequest\n >\n implements SpanExporter {\n constructor(config: OTLPExporterConfigBase = {}) {\n super(config);\n this._headers = Object.assign(\n this._headers,\n baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS\n )\n );\n }\n convert(spans: ReadableSpan[]): IExportTraceServiceRequest {\n return createExportTraceServiceRequest(spans, true);\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return typeof config.url === 'string'\n ? config.url\n : getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT.length > 0\n ? appendRootPathToUrlIfNeeded(getEnv().OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : getEnv().OTEL_EXPORTER_OTLP_ENDPOINT.length > 0\n ? appendResourcePathToUrl(getEnv().OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_COLLECTOR_RESOURCE_PATH)\n : DEFAULT_COLLECTOR_URL;\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './OTLPTraceExporter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './OTLPTraceExporter';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/browser/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,qBAAqB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './OTLPTraceExporter';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './node';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright The OpenTelemetry Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * from './node';
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './node';\n"]}
@@ -0,0 +1,13 @@
1
+ import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
+ import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
4
+ import { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer';
5
+ /**
6
+ * Collector Trace Exporter for Node
7
+ */
8
+ export declare class OTLPTraceExporter extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceRequest> implements SpanExporter {
9
+ constructor(config?: OTLPExporterNodeConfigBase);
10
+ convert(spans: ReadableSpan[]): IExportTraceServiceRequest;
11
+ getDefaultUrl(config: OTLPExporterNodeConfigBase): string;
12
+ }
13
+ //# sourceMappingURL=OTLPTraceExporter.d.ts.map