@opentelemetry/exporter-trace-otlp-proto 0.54.2 → 0.56.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.
Files changed (29) hide show
  1. package/README.md +3 -2
  2. package/build/esm/platform/browser/OTLPTraceExporter.d.ts +2 -3
  3. package/build/esm/platform/browser/OTLPTraceExporter.js +5 -4
  4. package/build/esm/platform/browser/OTLPTraceExporter.js.map +1 -1
  5. package/build/esm/platform/node/OTLPTraceExporter.d.ts +2 -3
  6. package/build/esm/platform/node/OTLPTraceExporter.js +8 -18
  7. package/build/esm/platform/node/OTLPTraceExporter.js.map +1 -1
  8. package/build/esm/version.d.ts +1 -1
  9. package/build/esm/version.js +1 -1
  10. package/build/esm/version.js.map +1 -1
  11. package/build/esnext/platform/browser/OTLPTraceExporter.d.ts +2 -3
  12. package/build/esnext/platform/browser/OTLPTraceExporter.js +5 -4
  13. package/build/esnext/platform/browser/OTLPTraceExporter.js.map +1 -1
  14. package/build/esnext/platform/node/OTLPTraceExporter.d.ts +2 -3
  15. package/build/esnext/platform/node/OTLPTraceExporter.js +8 -7
  16. package/build/esnext/platform/node/OTLPTraceExporter.js.map +1 -1
  17. package/build/esnext/version.d.ts +1 -1
  18. package/build/esnext/version.js +1 -1
  19. package/build/esnext/version.js.map +1 -1
  20. package/build/src/platform/browser/OTLPTraceExporter.d.ts +2 -3
  21. package/build/src/platform/browser/OTLPTraceExporter.js +3 -2
  22. package/build/src/platform/browser/OTLPTraceExporter.js.map +1 -1
  23. package/build/src/platform/node/OTLPTraceExporter.d.ts +2 -3
  24. package/build/src/platform/node/OTLPTraceExporter.js +6 -5
  25. package/build/src/platform/node/OTLPTraceExporter.js.map +1 -1
  26. package/build/src/version.d.ts +1 -1
  27. package/build/src/version.js +1 -1
  28. package/build/src/version.js.map +1 -1
  29. package/package.json +12 -12
package/README.md CHANGED
@@ -32,9 +32,10 @@ const collectorOptions = {
32
32
  }, //an optional object containing custom headers to be sent with each request will only work with http
33
33
  };
34
34
 
35
- const provider = new BasicTracerProvider();
36
35
  const exporter = new OTLPTraceExporter(collectorOptions);
37
- provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
36
+ const provider = new BasicTracerProvider({
37
+ spanProcessors: [new SimpleSpanProcessor(exporter)]
38
+ });
38
39
 
39
40
  provider.register();
40
41
 
@@ -1,10 +1,9 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
- import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
2
+ import { OTLPExporterConfigBase, OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
4
3
  /**
5
4
  * Collector Trace Exporter for Web
6
5
  */
7
- export declare class OTLPTraceExporter extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceResponse> implements SpanExporter {
6
+ export declare class OTLPTraceExporter extends OTLPExporterBase<ReadableSpan[]> implements SpanExporter {
8
7
  constructor(config?: OTLPExporterConfigBase);
9
8
  }
10
9
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -28,8 +28,9 @@ 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 '@opentelemetry/otlp-exporter-base';
32
- import { ProtobufTraceSerializer, } from '@opentelemetry/otlp-transformer';
31
+ import { OTLPExporterBase, } from '@opentelemetry/otlp-exporter-base';
32
+ import { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';
33
+ import { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';
33
34
  var DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';
34
35
  /**
35
36
  * Collector Trace Exporter for Web
@@ -38,9 +39,9 @@ var OTLPTraceExporter = /** @class */ (function (_super) {
38
39
  __extends(OTLPTraceExporter, _super);
39
40
  function OTLPTraceExporter(config) {
40
41
  if (config === void 0) { config = {}; }
41
- return _super.call(this, config, ProtobufTraceSerializer, { 'Content-Type': 'application/x-protobuf' }, DEFAULT_COLLECTOR_RESOURCE_PATH) || this;
42
+ return _super.call(this, createLegacyOtlpBrowserExportDelegate(config, ProtobufTraceSerializer, DEFAULT_COLLECTOR_RESOURCE_PATH, { 'Content-Type': 'application/x-protobuf' })) || this;
42
43
  }
43
44
  return OTLPTraceExporter;
44
- }(OTLPExporterBrowserBase));
45
+ }(OTLPExporterBase));
45
46
  export { OTLPTraceExporter };
46
47
  //# sourceMappingURL=OTLPTraceExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAEL,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AAEzC,IAAM,+BAA+B,GAAG,WAAW,CAAC;AAEpD;;GAEG;AACH;IACU,qCAAkE;IAG1E,2BAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;eAC7C,kBACE,MAAM,EACN,uBAAuB,EACvB,EAAE,cAAc,EAAE,wBAAwB,EAAE,EAC5C,+BAA+B,CAChC;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AAZD,CACU,uBAAuB,GAWhC","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 {\n OTLPExporterConfigBase,\n OTLPExporterBrowserBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport {\n IExportTraceServiceResponse,\n ProtobufTraceSerializer,\n} from '@opentelemetry/otlp-transformer';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceResponse>\n implements SpanExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n config,\n ProtobufTraceSerializer,\n { 'Content-Type': 'application/x-protobuf' },\n DEFAULT_COLLECTOR_RESOURCE_PATH\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAEL,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG,IAAM,+BAA+B,GAAG,WAAW,CAAC;AAEpD;;GAEG;AACH;IACU,qCAAgC;IAGxC,2BAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;eAC7C,kBACE,qCAAqC,CACnC,MAAM,EACN,uBAAuB,EACvB,+BAA+B,EAC/B,EAAE,cAAc,EAAE,wBAAwB,EAAE,CAC7C,CACF;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AAdD,CACU,gBAAgB,GAazB","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 {\n OTLPExporterConfigBase,\n OTLPExporterBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBase<ReadableSpan[]>\n implements SpanExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config,\n ProtobufTraceSerializer,\n DEFAULT_COLLECTOR_RESOURCE_PATH,\n { 'Content-Type': 'application/x-protobuf' }\n )\n );\n }\n}\n"]}
@@ -1,10 +1,9 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterNodeConfigBase, OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
- import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
2
+ import { OTLPExporterNodeConfigBase, OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
4
3
  /**
5
4
  * Collector Trace Exporter for Node with protobuf
6
5
  */
7
- export declare class OTLPTraceExporter extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceResponse> implements SpanExporter {
6
+ export declare class OTLPTraceExporter extends OTLPExporterBase<ReadableSpan[]> implements SpanExporter {
8
7
  constructor(config?: OTLPExporterNodeConfigBase);
9
8
  }
10
9
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -28,23 +28,10 @@ var __extends = (this && this.__extends) || (function () {
28
28
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29
29
  };
30
30
  })();
31
- var __assign = (this && this.__assign) || function () {
32
- __assign = Object.assign || function(t) {
33
- for (var s, i = 1, n = arguments.length; i < n; i++) {
34
- s = arguments[i];
35
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
36
- t[p] = s[p];
37
- }
38
- return t;
39
- };
40
- return __assign.apply(this, arguments);
41
- };
42
- import { OTLPExporterNodeBase, } from '@opentelemetry/otlp-exporter-base';
43
- import { ProtobufTraceSerializer, } from '@opentelemetry/otlp-transformer';
31
+ import { OTLPExporterBase, } from '@opentelemetry/otlp-exporter-base';
32
+ import { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';
44
33
  import { VERSION } from '../../version';
45
- var USER_AGENT = {
46
- 'User-Agent': "OTel-OTLP-Exporter-JavaScript/" + VERSION,
47
- };
34
+ import { createOtlpHttpExportDelegate, convertLegacyHttpOptions, } from '@opentelemetry/otlp-exporter-base/node-http';
48
35
  /**
49
36
  * Collector Trace Exporter for Node with protobuf
50
37
  */
@@ -52,9 +39,12 @@ var OTLPTraceExporter = /** @class */ (function (_super) {
52
39
  __extends(OTLPTraceExporter, _super);
53
40
  function OTLPTraceExporter(config) {
54
41
  if (config === void 0) { config = {}; }
55
- return _super.call(this, config, ProtobufTraceSerializer, __assign(__assign({}, USER_AGENT), { 'Content-Type': 'application/x-protobuf' }), 'TRACES', 'v1/traces') || this;
42
+ return _super.call(this, createOtlpHttpExportDelegate(convertLegacyHttpOptions(config, 'TRACES', 'v1/traces', {
43
+ 'User-Agent': "OTel-OTLP-Exporter-JavaScript/" + VERSION,
44
+ 'Content-Type': 'application/x-protobuf',
45
+ }), ProtobufTraceSerializer)) || this;
56
46
  }
57
47
  return OTLPTraceExporter;
58
- }(OTLPExporterNodeBase));
48
+ }(OTLPExporterBase));
59
49
  export { OTLPTraceExporter };
60
50
  //# sourceMappingURL=OTLPTraceExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,OAAO,EAEL,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,IAAM,UAAU,GAAG;IACjB,YAAY,EAAE,mCAAiC,OAAS;CACzD,CAAC;AAEF;;GAEG;AACH;IACU,qCAA+D;IAGvE,2BAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;eACjD,kBACE,MAAM,EACN,uBAAuB,wBAElB,UAAU,KACb,cAAc,EAAE,wBAAwB,KAE1C,QAAQ,EACR,WAAW,CACZ;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AAhBD,CACU,oBAAoB,GAe7B","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 {\n OTLPExporterNodeConfigBase,\n OTLPExporterNodeBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport {\n IExportTraceServiceResponse,\n ProtobufTraceSerializer,\n} from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\n\nconst USER_AGENT = {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n};\n\n/**\n * Collector Trace Exporter for Node with protobuf\n */\nexport class OTLPTraceExporter\n extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceResponse>\n implements SpanExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n config,\n ProtobufTraceSerializer,\n {\n ...USER_AGENT,\n 'Content-Type': 'application/x-protobuf',\n },\n 'TRACES',\n 'v1/traces'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAGH,OAAO,EAEL,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,6CAA6C,CAAC;AAErD;;GAEG;AACH;IACU,qCAAgC;IAGxC,2BAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;eACjD,kBACE,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE;YACtD,YAAY,EAAE,mCAAiC,OAAS;YACxD,cAAc,EAAE,wBAAwB;SACzC,CAAC,EACF,uBAAuB,CACxB,CACF;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AAfD,CACU,gBAAgB,GAczB","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 {\n OTLPExporterNodeConfigBase,\n OTLPExporterBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\nimport {\n createOtlpHttpExportDelegate,\n convertLegacyHttpOptions,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\n/**\n * Collector Trace Exporter for Node with protobuf\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBase<ReadableSpan[]>\n implements SpanExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config, 'TRACES', 'v1/traces', {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n 'Content-Type': 'application/x-protobuf',\n }),\n ProtobufTraceSerializer\n )\n );\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.54.2";
1
+ export declare const VERSION = "0.56.0";
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.54.2';
17
+ export var VERSION = '0.56.0';
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.54.2';\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.56.0';\n"]}
@@ -1,10 +1,9 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
- import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
2
+ import { OTLPExporterConfigBase, OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
4
3
  /**
5
4
  * Collector Trace Exporter for Web
6
5
  */
7
- export declare class OTLPTraceExporter extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceResponse> implements SpanExporter {
6
+ export declare class OTLPTraceExporter extends OTLPExporterBase<ReadableSpan[]> implements SpanExporter {
8
7
  constructor(config?: OTLPExporterConfigBase);
9
8
  }
10
9
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -13,15 +13,16 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { OTLPExporterBrowserBase, } from '@opentelemetry/otlp-exporter-base';
17
- import { ProtobufTraceSerializer, } from '@opentelemetry/otlp-transformer';
16
+ import { OTLPExporterBase, } from '@opentelemetry/otlp-exporter-base';
17
+ import { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';
18
+ import { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';
18
19
  const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';
19
20
  /**
20
21
  * Collector Trace Exporter for Web
21
22
  */
22
- export class OTLPTraceExporter extends OTLPExporterBrowserBase {
23
+ export class OTLPTraceExporter extends OTLPExporterBase {
23
24
  constructor(config = {}) {
24
- super(config, ProtobufTraceSerializer, { 'Content-Type': 'application/x-protobuf' }, DEFAULT_COLLECTOR_RESOURCE_PATH);
25
+ super(createLegacyOtlpBrowserExportDelegate(config, ProtobufTraceSerializer, DEFAULT_COLLECTOR_RESOURCE_PATH, { 'Content-Type': 'application/x-protobuf' }));
25
26
  }
26
27
  }
27
28
  //# sourceMappingURL=OTLPTraceExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,+BAA+B,GAAG,WAAW,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,iBACX,SAAQ,uBAAkE;IAG1E,YAAY,SAAiC,EAAE;QAC7C,KAAK,CACH,MAAM,EACN,uBAAuB,EACvB,EAAE,cAAc,EAAE,wBAAwB,EAAE,EAC5C,+BAA+B,CAChC,CAAC;IACJ,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 {\n OTLPExporterConfigBase,\n OTLPExporterBrowserBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport {\n IExportTraceServiceResponse,\n ProtobufTraceSerializer,\n} from '@opentelemetry/otlp-transformer';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceResponse>\n implements SpanExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n config,\n ProtobufTraceSerializer,\n { 'Content-Type': 'application/x-protobuf' },\n DEFAULT_COLLECTOR_RESOURCE_PATH\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG,MAAM,+BAA+B,GAAG,WAAW,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,iBACX,SAAQ,gBAAgC;IAGxC,YAAY,SAAiC,EAAE;QAC7C,KAAK,CACH,qCAAqC,CACnC,MAAM,EACN,uBAAuB,EACvB,+BAA+B,EAC/B,EAAE,cAAc,EAAE,wBAAwB,EAAE,CAC7C,CACF,CAAC;IACJ,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 {\n OTLPExporterConfigBase,\n OTLPExporterBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBase<ReadableSpan[]>\n implements SpanExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config,\n ProtobufTraceSerializer,\n DEFAULT_COLLECTOR_RESOURCE_PATH,\n { 'Content-Type': 'application/x-protobuf' }\n )\n );\n }\n}\n"]}
@@ -1,10 +1,9 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterNodeConfigBase, OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
- import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
2
+ import { OTLPExporterNodeConfigBase, OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
4
3
  /**
5
4
  * Collector Trace Exporter for Node with protobuf
6
5
  */
7
- export declare class OTLPTraceExporter extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceResponse> implements SpanExporter {
6
+ export declare class OTLPTraceExporter extends OTLPExporterBase<ReadableSpan[]> implements SpanExporter {
8
7
  constructor(config?: OTLPExporterNodeConfigBase);
9
8
  }
10
9
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -13,18 +13,19 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { OTLPExporterNodeBase, } from '@opentelemetry/otlp-exporter-base';
17
- import { ProtobufTraceSerializer, } from '@opentelemetry/otlp-transformer';
16
+ import { OTLPExporterBase, } from '@opentelemetry/otlp-exporter-base';
17
+ import { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';
18
18
  import { VERSION } from '../../version';
19
- const USER_AGENT = {
20
- 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,
21
- };
19
+ import { createOtlpHttpExportDelegate, convertLegacyHttpOptions, } from '@opentelemetry/otlp-exporter-base/node-http';
22
20
  /**
23
21
  * Collector Trace Exporter for Node with protobuf
24
22
  */
25
- export class OTLPTraceExporter extends OTLPExporterNodeBase {
23
+ export class OTLPTraceExporter extends OTLPExporterBase {
26
24
  constructor(config = {}) {
27
- super(config, ProtobufTraceSerializer, Object.assign(Object.assign({}, USER_AGENT), { 'Content-Type': 'application/x-protobuf' }), 'TRACES', 'v1/traces');
25
+ super(createOtlpHttpExportDelegate(convertLegacyHttpOptions(config, 'TRACES', 'v1/traces', {
26
+ 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,
27
+ 'Content-Type': 'application/x-protobuf',
28
+ }), ProtobufTraceSerializer));
28
29
  }
29
30
  }
30
31
  //# sourceMappingURL=OTLPTraceExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,iCAAiC,OAAO,EAAE;CACzD,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,iBACX,SAAQ,oBAA+D;IAGvE,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,MAAM,EACN,uBAAuB,kCAElB,UAAU,KACb,cAAc,EAAE,wBAAwB,KAE1C,QAAQ,EACR,WAAW,CACZ,CAAC;IACJ,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 {\n OTLPExporterNodeConfigBase,\n OTLPExporterNodeBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport {\n IExportTraceServiceResponse,\n ProtobufTraceSerializer,\n} from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\n\nconst USER_AGENT = {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n};\n\n/**\n * Collector Trace Exporter for Node with protobuf\n */\nexport class OTLPTraceExporter\n extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceResponse>\n implements SpanExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n config,\n ProtobufTraceSerializer,\n {\n ...USER_AGENT,\n 'Content-Type': 'application/x-protobuf',\n },\n 'TRACES',\n 'v1/traces'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,6CAA6C,CAAC;AAErD;;GAEG;AACH,MAAM,OAAO,iBACX,SAAQ,gBAAgC;IAGxC,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE;YACtD,YAAY,EAAE,iCAAiC,OAAO,EAAE;YACxD,cAAc,EAAE,wBAAwB;SACzC,CAAC,EACF,uBAAuB,CACxB,CACF,CAAC;IACJ,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 {\n OTLPExporterNodeConfigBase,\n OTLPExporterBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\nimport {\n createOtlpHttpExportDelegate,\n convertLegacyHttpOptions,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\n/**\n * Collector Trace Exporter for Node with protobuf\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBase<ReadableSpan[]>\n implements SpanExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config, 'TRACES', 'v1/traces', {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n 'Content-Type': 'application/x-protobuf',\n }),\n ProtobufTraceSerializer\n )\n );\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.54.2";
1
+ export declare const VERSION = "0.56.0";
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 const VERSION = '0.54.2';
17
+ export const VERSION = '0.56.0';
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,MAAM,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.54.2';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,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.56.0';\n"]}
@@ -1,10 +1,9 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterConfigBase, OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
- import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
2
+ import { OTLPExporterConfigBase, OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
4
3
  /**
5
4
  * Collector Trace Exporter for Web
6
5
  */
7
- export declare class OTLPTraceExporter extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceResponse> implements SpanExporter {
6
+ export declare class OTLPTraceExporter extends OTLPExporterBase<ReadableSpan[]> implements SpanExporter {
8
7
  constructor(config?: OTLPExporterConfigBase);
9
8
  }
10
9
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -18,13 +18,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.OTLPTraceExporter = void 0;
19
19
  const otlp_exporter_base_1 = require("@opentelemetry/otlp-exporter-base");
20
20
  const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
21
+ const browser_http_1 = require("@opentelemetry/otlp-exporter-base/browser-http");
21
22
  const DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';
22
23
  /**
23
24
  * Collector Trace Exporter for Web
24
25
  */
25
- class OTLPTraceExporter extends otlp_exporter_base_1.OTLPExporterBrowserBase {
26
+ class OTLPTraceExporter extends otlp_exporter_base_1.OTLPExporterBase {
26
27
  constructor(config = {}) {
27
- super(config, otlp_transformer_1.ProtobufTraceSerializer, { 'Content-Type': 'application/x-protobuf' }, DEFAULT_COLLECTOR_RESOURCE_PATH);
28
+ super((0, browser_http_1.createLegacyOtlpBrowserExportDelegate)(config, otlp_transformer_1.ProtobufTraceSerializer, DEFAULT_COLLECTOR_RESOURCE_PATH, { 'Content-Type': 'application/x-protobuf' }));
28
29
  }
29
30
  }
30
31
  exports.OTLPTraceExporter = OTLPTraceExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAG2C;AAC3C,sEAGyC;AAEzC,MAAM,+BAA+B,GAAG,WAAW,CAAC;AAEpD;;GAEG;AACH,MAAa,iBACX,SAAQ,4CAAkE;IAG1E,YAAY,SAAiC,EAAE;QAC7C,KAAK,CACH,MAAM,EACN,0CAAuB,EACvB,EAAE,cAAc,EAAE,wBAAwB,EAAE,EAC5C,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AAZD,8CAYC","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 {\n OTLPExporterConfigBase,\n OTLPExporterBrowserBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport {\n IExportTraceServiceResponse,\n ProtobufTraceSerializer,\n} from '@opentelemetry/otlp-transformer';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBrowserBase<ReadableSpan, IExportTraceServiceResponse>\n implements SpanExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n config,\n ProtobufTraceSerializer,\n { 'Content-Type': 'application/x-protobuf' },\n DEFAULT_COLLECTOR_RESOURCE_PATH\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPTraceExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAG2C;AAC3C,sEAA0E;AAC1E,iFAAuG;AAEvG,MAAM,+BAA+B,GAAG,WAAW,CAAC;AAEpD;;GAEG;AACH,MAAa,iBACX,SAAQ,qCAAgC;IAGxC,YAAY,SAAiC,EAAE;QAC7C,KAAK,CACH,IAAA,oDAAqC,EACnC,MAAM,EACN,0CAAuB,EACvB,+BAA+B,EAC/B,EAAE,cAAc,EAAE,wBAAwB,EAAE,CAC7C,CACF,CAAC;IACJ,CAAC;CACF;AAdD,8CAcC","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 {\n OTLPExporterConfigBase,\n OTLPExporterBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\nconst DEFAULT_COLLECTOR_RESOURCE_PATH = 'v1/traces';\n\n/**\n * Collector Trace Exporter for Web\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBase<ReadableSpan[]>\n implements SpanExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config,\n ProtobufTraceSerializer,\n DEFAULT_COLLECTOR_RESOURCE_PATH,\n { 'Content-Type': 'application/x-protobuf' }\n )\n );\n }\n}\n"]}
@@ -1,10 +1,9 @@
1
1
  import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base';
2
- import { OTLPExporterNodeConfigBase, OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
- import { IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer';
2
+ import { OTLPExporterNodeConfigBase, OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
4
3
  /**
5
4
  * Collector Trace Exporter for Node with protobuf
6
5
  */
7
- export declare class OTLPTraceExporter extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceResponse> implements SpanExporter {
6
+ export declare class OTLPTraceExporter extends OTLPExporterBase<ReadableSpan[]> implements SpanExporter {
8
7
  constructor(config?: OTLPExporterNodeConfigBase);
9
8
  }
10
9
  //# sourceMappingURL=OTLPTraceExporter.d.ts.map
@@ -19,15 +19,16 @@ exports.OTLPTraceExporter = void 0;
19
19
  const otlp_exporter_base_1 = require("@opentelemetry/otlp-exporter-base");
20
20
  const otlp_transformer_1 = require("@opentelemetry/otlp-transformer");
21
21
  const version_1 = require("../../version");
22
- const USER_AGENT = {
23
- 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`,
24
- };
22
+ const node_http_1 = require("@opentelemetry/otlp-exporter-base/node-http");
25
23
  /**
26
24
  * Collector Trace Exporter for Node with protobuf
27
25
  */
28
- class OTLPTraceExporter extends otlp_exporter_base_1.OTLPExporterNodeBase {
26
+ class OTLPTraceExporter extends otlp_exporter_base_1.OTLPExporterBase {
29
27
  constructor(config = {}) {
30
- super(config, otlp_transformer_1.ProtobufTraceSerializer, Object.assign(Object.assign({}, USER_AGENT), { 'Content-Type': 'application/x-protobuf' }), 'TRACES', 'v1/traces');
28
+ super((0, node_http_1.createOtlpHttpExportDelegate)((0, node_http_1.convertLegacyHttpOptions)(config, 'TRACES', 'v1/traces', {
29
+ 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`,
30
+ 'Content-Type': 'application/x-protobuf',
31
+ }), otlp_transformer_1.ProtobufTraceSerializer));
31
32
  }
32
33
  }
33
34
  exports.OTLPTraceExporter = OTLPTraceExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAG2C;AAC3C,sEAGyC;AACzC,2CAAwC;AAExC,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,iCAAiC,iBAAO,EAAE;CACzD,CAAC;AAEF;;GAEG;AACH,MAAa,iBACX,SAAQ,yCAA+D;IAGvE,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,MAAM,EACN,0CAAuB,kCAElB,UAAU,KACb,cAAc,EAAE,wBAAwB,KAE1C,QAAQ,EACR,WAAW,CACZ,CAAC;IACJ,CAAC;CACF;AAhBD,8CAgBC","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 {\n OTLPExporterNodeConfigBase,\n OTLPExporterNodeBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport {\n IExportTraceServiceResponse,\n ProtobufTraceSerializer,\n} from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\n\nconst USER_AGENT = {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n};\n\n/**\n * Collector Trace Exporter for Node with protobuf\n */\nexport class OTLPTraceExporter\n extends OTLPExporterNodeBase<ReadableSpan, IExportTraceServiceResponse>\n implements SpanExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n config,\n ProtobufTraceSerializer,\n {\n ...USER_AGENT,\n 'Content-Type': 'application/x-protobuf',\n },\n 'TRACES',\n 'v1/traces'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPTraceExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPTraceExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,0EAG2C;AAC3C,sEAA0E;AAC1E,2CAAwC;AACxC,2EAGqD;AAErD;;GAEG;AACH,MAAa,iBACX,SAAQ,qCAAgC;IAGxC,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,IAAA,wCAA4B,EAC1B,IAAA,oCAAwB,EAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE;YACtD,YAAY,EAAE,iCAAiC,iBAAO,EAAE;YACxD,cAAc,EAAE,wBAAwB;SACzC,CAAC,EACF,0CAAuB,CACxB,CACF,CAAC;IACJ,CAAC;CACF;AAfD,8CAeC","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 {\n OTLPExporterNodeConfigBase,\n OTLPExporterBase,\n} from '@opentelemetry/otlp-exporter-base';\nimport { ProtobufTraceSerializer } from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\nimport {\n createOtlpHttpExportDelegate,\n convertLegacyHttpOptions,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\n/**\n * Collector Trace Exporter for Node with protobuf\n */\nexport class OTLPTraceExporter\n extends OTLPExporterBase<ReadableSpan[]>\n implements SpanExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config, 'TRACES', 'v1/traces', {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n 'Content-Type': 'application/x-protobuf',\n }),\n ProtobufTraceSerializer\n )\n );\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.54.2";
1
+ export declare const VERSION = "0.56.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -17,5 +17,5 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.VERSION = '0.54.2';
20
+ exports.VERSION = '0.56.0';
21
21
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,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.54.2';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,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.56.0';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/exporter-trace-otlp-proto",
3
- "version": "0.54.2",
3
+ "version": "0.56.0",
4
4
  "description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector using protobuf over HTTP",
5
5
  "main": "build/src/index.js",
6
6
  "module": "build/esm/index.js",
@@ -62,10 +62,10 @@
62
62
  "access": "public"
63
63
  },
64
64
  "devDependencies": {
65
- "@babel/core": "7.25.2",
66
- "@babel/preset-env": "7.25.4",
65
+ "@babel/core": "7.26.0",
66
+ "@babel/preset-env": "7.26.0",
67
67
  "@opentelemetry/api": "1.9.0",
68
- "@types/mocha": "10.0.8",
68
+ "@types/mocha": "10.0.10",
69
69
  "@types/node": "18.6.5",
70
70
  "@types/sinon": "17.0.3",
71
71
  "babel-plugin-istanbul": "7.0.0",
@@ -77,12 +77,12 @@
77
77
  "karma-spec-reporter": "0.0.36",
78
78
  "karma-webpack": "5.0.1",
79
79
  "lerna": "6.6.2",
80
- "mocha": "10.7.3",
80
+ "mocha": "10.8.2",
81
81
  "nyc": "15.1.0",
82
82
  "sinon": "15.1.2",
83
83
  "ts-loader": "9.5.1",
84
84
  "typescript": "4.4.4",
85
- "webpack": "5.94.0",
85
+ "webpack": "5.96.1",
86
86
  "webpack-cli": "5.1.4",
87
87
  "webpack-merge": "5.10.0"
88
88
  },
@@ -90,13 +90,13 @@
90
90
  "@opentelemetry/api": "^1.3.0"
91
91
  },
92
92
  "dependencies": {
93
- "@opentelemetry/core": "1.27.0",
94
- "@opentelemetry/otlp-exporter-base": "0.54.2",
95
- "@opentelemetry/otlp-transformer": "0.54.2",
96
- "@opentelemetry/resources": "1.27.0",
97
- "@opentelemetry/sdk-trace-base": "1.27.0"
93
+ "@opentelemetry/core": "1.29.0",
94
+ "@opentelemetry/otlp-exporter-base": "0.56.0",
95
+ "@opentelemetry/otlp-transformer": "0.56.0",
96
+ "@opentelemetry/resources": "1.29.0",
97
+ "@opentelemetry/sdk-trace-base": "1.29.0"
98
98
  },
99
99
  "homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-proto",
100
100
  "sideEffects": false,
101
- "gitHead": "72c9af91983e4b7aade98c901bd45c6cefee0da4"
101
+ "gitHead": "85dcbc7c55f002837f1bf1bf01145dbb34a55b40"
102
102
  }