@opentelemetry/exporter-logs-otlp-http 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 (28) hide show
  1. package/build/esm/platform/browser/OTLPLogExporter.d.ts +2 -3
  2. package/build/esm/platform/browser/OTLPLogExporter.js +4 -16
  3. package/build/esm/platform/browser/OTLPLogExporter.js.map +1 -1
  4. package/build/esm/platform/node/OTLPLogExporter.d.ts +2 -3
  5. package/build/esm/platform/node/OTLPLogExporter.js +7 -17
  6. package/build/esm/platform/node/OTLPLogExporter.js.map +1 -1
  7. package/build/esm/version.d.ts +1 -1
  8. package/build/esm/version.js +1 -1
  9. package/build/esm/version.js.map +1 -1
  10. package/build/esnext/platform/browser/OTLPLogExporter.d.ts +2 -3
  11. package/build/esnext/platform/browser/OTLPLogExporter.js +4 -5
  12. package/build/esnext/platform/browser/OTLPLogExporter.js.map +1 -1
  13. package/build/esnext/platform/node/OTLPLogExporter.d.ts +2 -3
  14. package/build/esnext/platform/node/OTLPLogExporter.js +7 -6
  15. package/build/esnext/platform/node/OTLPLogExporter.js.map +1 -1
  16. package/build/esnext/version.d.ts +1 -1
  17. package/build/esnext/version.js +1 -1
  18. package/build/esnext/version.js.map +1 -1
  19. package/build/src/platform/browser/OTLPLogExporter.d.ts +2 -3
  20. package/build/src/platform/browser/OTLPLogExporter.js +3 -4
  21. package/build/src/platform/browser/OTLPLogExporter.js.map +1 -1
  22. package/build/src/platform/node/OTLPLogExporter.d.ts +2 -3
  23. package/build/src/platform/node/OTLPLogExporter.js +6 -5
  24. package/build/src/platform/node/OTLPLogExporter.js.map +1 -1
  25. package/build/src/version.d.ts +1 -1
  26. package/build/src/version.js +1 -1
  27. package/build/src/version.js.map +1 -1
  28. package/package.json +13 -13
@@ -1,11 +1,10 @@
1
1
  import type { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';
2
2
  import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
3
- import type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
4
- import { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
5
4
  /**
6
5
  * Collector Logs Exporter for Web
7
6
  */
8
- export declare class OTLPLogExporter extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
7
+ export declare class OTLPLogExporter extends OTLPExporterBase<ReadableLogRecord[]> implements LogRecordExporter {
9
8
  constructor(config?: OTLPExporterConfigBase);
10
9
  }
11
10
  //# sourceMappingURL=OTLPLogExporter.d.ts.map
@@ -28,19 +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
- 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 { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
31
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
43
32
  import { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';
33
+ import { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';
44
34
  /**
45
35
  * Collector Logs Exporter for Web
46
36
  */
@@ -48,11 +38,9 @@ var OTLPLogExporter = /** @class */ (function (_super) {
48
38
  __extends(OTLPLogExporter, _super);
49
39
  function OTLPLogExporter(config) {
50
40
  if (config === void 0) { config = {}; }
51
- return _super.call(this, __assign({}, config), JsonLogsSerializer, {
52
- 'Content-Type': 'application/json',
53
- }, 'v1/logs') || this;
41
+ return _super.call(this, createLegacyOtlpBrowserExportDelegate(config, JsonLogsSerializer, 'v1/logs', { 'Content-Type': 'application/json' })) || this;
54
42
  }
55
43
  return OTLPLogExporter;
56
- }(OTLPExporterBrowserBase));
44
+ }(OTLPExporterBase));
57
45
  export { OTLPLogExporter };
58
46
  //# sourceMappingURL=OTLPLogExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQH,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH;IACU,mCAAsE;IAG9E,yBAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;eAC7C,+BAEO,MAAM,GAEX,kBAAkB,EAClB;YACE,cAAc,EAAE,kBAAkB;SACnC,EACD,SAAS,CACV;IACH,CAAC;IACH,sBAAC;AAAD,CAAC,AAhBD,CACU,uBAAuB,GAehC","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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceResponse>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n {\n ...config,\n },\n JsonLogsSerializer,\n {\n 'Content-Type': 'application/json',\n },\n 'v1/logs'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAOH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG;;GAEG;AACH;IACU,mCAAqC;IAG7C,yBAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;eAC7C,kBACE,qCAAqC,CACnC,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,CACF;IACH,CAAC;IACH,sBAAC;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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBase<ReadableLogRecord[]>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config,\n JsonLogsSerializer,\n 'v1/logs',\n { 'Content-Type': 'application/json' }\n )\n );\n }\n}\n"]}
@@ -1,11 +1,10 @@
1
1
  import type { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';
2
2
  import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
3
- import type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
4
- import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
5
4
  /**
6
5
  * Collector Logs Exporter for Node
7
6
  */
8
- export declare class OTLPLogExporter extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
7
+ export declare class OTLPLogExporter extends OTLPExporterBase<ReadableLogRecord[]> implements LogRecordExporter {
9
8
  constructor(config?: OTLPExporterNodeConfigBase);
10
9
  }
11
10
  //# sourceMappingURL=OTLPLogExporter.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';
31
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
43
32
  import { JsonLogsSerializer } 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 { convertLegacyHttpOptions, createOtlpHttpExportDelegate, } from '@opentelemetry/otlp-exporter-base/node-http';
48
35
  /**
49
36
  * Collector Logs Exporter for Node
50
37
  */
@@ -52,9 +39,12 @@ var OTLPLogExporter = /** @class */ (function (_super) {
52
39
  __extends(OTLPLogExporter, _super);
53
40
  function OTLPLogExporter(config) {
54
41
  if (config === void 0) { config = {}; }
55
- return _super.call(this, __assign({}, config), JsonLogsSerializer, __assign(__assign({}, USER_AGENT), { 'Content-Type': 'application/json' }), 'LOGS', 'v1/logs') || this;
42
+ return _super.call(this, createOtlpHttpExportDelegate(convertLegacyHttpOptions(config, 'LOGS', 'v1/logs', {
43
+ 'User-Agent': "OTel-OTLP-Exporter-JavaScript/" + VERSION,
44
+ 'Content-Type': 'application/json',
45
+ }), JsonLogsSerializer)) || this;
56
46
  }
57
47
  return OTLPLogExporter;
58
- }(OTLPExporterNodeBase));
48
+ }(OTLPExporterBase));
59
49
  export { OTLPLogExporter };
60
50
  //# sourceMappingURL=OTLPLogExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQH,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,IAAM,UAAU,GAAG;IACjB,YAAY,EAAE,mCAAiC,OAAS;CACzD,CAAC;AAEF;;GAEG;AACH;IACU,mCAAmE;IAG3E,yBAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;eACjD,+BAEO,MAAM,GAEX,kBAAkB,wBAEb,UAAU,KACb,cAAc,EAAE,kBAAkB,KAEpC,MAAM,EACN,SAAS,CACV;IACH,CAAC;IACH,sBAAC;AAAD,CAAC,AAlBD,CACU,oBAAoB,GAiB7B","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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\n\nimport { VERSION } from '../../version';\n\nconst USER_AGENT = {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n};\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n {\n ...config,\n },\n JsonLogsSerializer,\n {\n ...USER_AGENT,\n 'Content-Type': 'application/json',\n },\n 'LOGS',\n 'v1/logs'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;AAOH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AAErD;;GAEG;AACH;IACU,mCAAqC;IAG7C,yBAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;eACjD,kBACE,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClD,YAAY,EAAE,mCAAiC,OAAS;YACxD,cAAc,EAAE,kBAAkB;SACnC,CAAC,EACF,kBAAkB,CACnB,CACF;IACH,CAAC;IACH,sBAAC;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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\nimport {\n convertLegacyHttpOptions,\n createOtlpHttpExportDelegate,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterBase<ReadableLogRecord[]>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config, 'LOGS', 'v1/logs', {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n 'Content-Type': 'application/json',\n }),\n JsonLogsSerializer\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,11 +1,10 @@
1
1
  import type { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';
2
2
  import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
3
- import type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
4
- import { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
5
4
  /**
6
5
  * Collector Logs Exporter for Web
7
6
  */
8
- export declare class OTLPLogExporter extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
7
+ export declare class OTLPLogExporter extends OTLPExporterBase<ReadableLogRecord[]> implements LogRecordExporter {
9
8
  constructor(config?: OTLPExporterConfigBase);
10
9
  }
11
10
  //# sourceMappingURL=OTLPLogExporter.d.ts.map
@@ -13,16 +13,15 @@
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';
16
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
17
17
  import { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';
18
+ import { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';
18
19
  /**
19
20
  * Collector Logs Exporter for Web
20
21
  */
21
- export class OTLPLogExporter extends OTLPExporterBrowserBase {
22
+ export class OTLPLogExporter extends OTLPExporterBase {
22
23
  constructor(config = {}) {
23
- super(Object.assign({}, config), JsonLogsSerializer, {
24
- 'Content-Type': 'application/json',
25
- }, 'v1/logs');
24
+ super(createLegacyOtlpBrowserExportDelegate(config, JsonLogsSerializer, 'v1/logs', { 'Content-Type': 'application/json' }));
26
25
  }
27
26
  }
28
27
  //# sourceMappingURL=OTLPLogExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,uBAAsE;IAG9E,YAAY,SAAiC,EAAE;QAC7C,KAAK,mBAEE,MAAM,GAEX,kBAAkB,EAClB;YACE,cAAc,EAAE,kBAAkB;SACnC,EACD,SAAS,CACV,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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceResponse>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n {\n ...config,\n },\n JsonLogsSerializer,\n {\n 'Content-Type': 'application/json',\n },\n 'v1/logs'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,gDAAgD,CAAC;AAEvG;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,gBAAqC;IAG7C,YAAY,SAAiC,EAAE;QAC7C,KAAK,CACH,qCAAqC,CACnC,MAAM,EACN,kBAAkB,EAClB,SAAS,EACT,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBase<ReadableLogRecord[]>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config,\n JsonLogsSerializer,\n 'v1/logs',\n { 'Content-Type': 'application/json' }\n )\n );\n }\n}\n"]}
@@ -1,11 +1,10 @@
1
1
  import type { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';
2
2
  import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
3
- import type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
4
- import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
5
4
  /**
6
5
  * Collector Logs Exporter for Node
7
6
  */
8
- export declare class OTLPLogExporter extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
7
+ export declare class OTLPLogExporter extends OTLPExporterBase<ReadableLogRecord[]> implements LogRecordExporter {
9
8
  constructor(config?: OTLPExporterNodeConfigBase);
10
9
  }
11
10
  //# sourceMappingURL=OTLPLogExporter.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';
16
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
17
17
  import { JsonLogsSerializer } 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 { convertLegacyHttpOptions, createOtlpHttpExportDelegate, } from '@opentelemetry/otlp-exporter-base/node-http';
22
20
  /**
23
21
  * Collector Logs Exporter for Node
24
22
  */
25
- export class OTLPLogExporter extends OTLPExporterNodeBase {
23
+ export class OTLPLogExporter extends OTLPExporterBase {
26
24
  constructor(config = {}) {
27
- super(Object.assign({}, config), JsonLogsSerializer, Object.assign(Object.assign({}, USER_AGENT), { 'Content-Type': 'application/json' }), 'LOGS', 'v1/logs');
25
+ super(createOtlpHttpExportDelegate(convertLegacyHttpOptions(config, 'LOGS', 'v1/logs', {
26
+ 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,
27
+ 'Content-Type': 'application/json',
28
+ }), JsonLogsSerializer));
28
29
  }
29
30
  }
30
31
  //# sourceMappingURL=OTLPLogExporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,iCAAiC,OAAO,EAAE;CACzD,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,oBAAmE;IAG3E,YAAY,SAAqC,EAAE;QACjD,KAAK,mBAEE,MAAM,GAEX,kBAAkB,kCAEb,UAAU,KACb,cAAc,EAAE,kBAAkB,KAEpC,MAAM,EACN,SAAS,CACV,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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\n\nimport { VERSION } from '../../version';\n\nconst USER_AGENT = {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n};\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n {\n ...config,\n },\n JsonLogsSerializer,\n {\n ...USER_AGENT,\n 'Content-Type': 'application/json',\n },\n 'LOGS',\n 'v1/logs'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AAErD;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,gBAAqC;IAG7C,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,4BAA4B,CAC1B,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClD,YAAY,EAAE,iCAAiC,OAAO,EAAE;YACxD,cAAc,EAAE,kBAAkB;SACnC,CAAC,EACF,kBAAkB,CACnB,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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\nimport {\n convertLegacyHttpOptions,\n createOtlpHttpExportDelegate,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterBase<ReadableLogRecord[]>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config, 'LOGS', 'v1/logs', {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n 'Content-Type': 'application/json',\n }),\n JsonLogsSerializer\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,11 +1,10 @@
1
1
  import type { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';
2
2
  import type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
3
- import type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
4
- import { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
5
4
  /**
6
5
  * Collector Logs Exporter for Web
7
6
  */
8
- export declare class OTLPLogExporter extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
7
+ export declare class OTLPLogExporter extends OTLPExporterBase<ReadableLogRecord[]> implements LogRecordExporter {
9
8
  constructor(config?: OTLPExporterConfigBase);
10
9
  }
11
10
  //# sourceMappingURL=OTLPLogExporter.d.ts.map
@@ -18,14 +18,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.OTLPLogExporter = 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
  /**
22
23
  * Collector Logs Exporter for Web
23
24
  */
24
- class OTLPLogExporter extends otlp_exporter_base_1.OTLPExporterBrowserBase {
25
+ class OTLPLogExporter extends otlp_exporter_base_1.OTLPExporterBase {
25
26
  constructor(config = {}) {
26
- super(Object.assign({}, config), otlp_transformer_1.JsonLogsSerializer, {
27
- 'Content-Type': 'application/json',
28
- }, 'v1/logs');
27
+ super((0, browser_http_1.createLegacyOtlpBrowserExportDelegate)(config, otlp_transformer_1.JsonLogsSerializer, 'v1/logs', { 'Content-Type': 'application/json' }));
29
28
  }
30
29
  }
31
30
  exports.OTLPLogExporter = OTLPLogExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,0EAA4E;AAC5E,sEAAqE;AAErE;;GAEG;AACH,MAAa,eACX,SAAQ,4CAAsE;IAG9E,YAAY,SAAiC,EAAE;QAC7C,KAAK,mBAEE,MAAM,GAEX,qCAAkB,EAClB;YACE,cAAc,EAAE,kBAAkB;SACnC,EACD,SAAS,CACV,CAAC;IACJ,CAAC;CACF;AAhBD,0CAgBC","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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceResponse>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n {\n ...config,\n },\n JsonLogsSerializer,\n {\n 'Content-Type': 'application/json',\n },\n 'v1/logs'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAOH,0EAAqE;AACrE,sEAAqE;AACrE,iFAAuG;AAEvG;;GAEG;AACH,MAAa,eACX,SAAQ,qCAAqC;IAG7C,YAAY,SAAiC,EAAE;QAC7C,KAAK,CACH,IAAA,oDAAqC,EACnC,MAAM,EACN,qCAAkB,EAClB,SAAS,EACT,EAAE,cAAc,EAAE,kBAAkB,EAAE,CACvC,CACF,CAAC;IACJ,CAAC;CACF;AAdD,0CAcC","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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport { createLegacyOtlpBrowserExportDelegate } from '@opentelemetry/otlp-exporter-base/browser-http';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBase<ReadableLogRecord[]>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n super(\n createLegacyOtlpBrowserExportDelegate(\n config,\n JsonLogsSerializer,\n 'v1/logs',\n { 'Content-Type': 'application/json' }\n )\n );\n }\n}\n"]}
@@ -1,11 +1,10 @@
1
1
  import type { ReadableLogRecord, LogRecordExporter } from '@opentelemetry/sdk-logs';
2
2
  import type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
3
- import type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';
4
- import { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';
3
+ import { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';
5
4
  /**
6
5
  * Collector Logs Exporter for Node
7
6
  */
8
- export declare class OTLPLogExporter extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse> implements LogRecordExporter {
7
+ export declare class OTLPLogExporter extends OTLPExporterBase<ReadableLogRecord[]> implements LogRecordExporter {
9
8
  constructor(config?: OTLPExporterNodeConfigBase);
10
9
  }
11
10
  //# sourceMappingURL=OTLPLogExporter.d.ts.map
@@ -19,15 +19,16 @@ exports.OTLPLogExporter = 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 Logs Exporter for Node
27
25
  */
28
- class OTLPLogExporter extends otlp_exporter_base_1.OTLPExporterNodeBase {
26
+ class OTLPLogExporter extends otlp_exporter_base_1.OTLPExporterBase {
29
27
  constructor(config = {}) {
30
- super(Object.assign({}, config), otlp_transformer_1.JsonLogsSerializer, Object.assign(Object.assign({}, USER_AGENT), { 'Content-Type': 'application/json' }), 'LOGS', 'v1/logs');
28
+ super((0, node_http_1.createOtlpHttpExportDelegate)((0, node_http_1.convertLegacyHttpOptions)(config, 'LOGS', 'v1/logs', {
29
+ 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`,
30
+ 'Content-Type': 'application/json',
31
+ }), otlp_transformer_1.JsonLogsSerializer));
31
32
  }
32
33
  }
33
34
  exports.OTLPLogExporter = OTLPLogExporter;
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,0EAAyE;AACzE,sEAAqE;AAErE,2CAAwC;AAExC,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,iCAAiC,iBAAO,EAAE;CACzD,CAAC;AAEF;;GAEG;AACH,MAAa,eACX,SAAQ,yCAAmE;IAG3E,YAAY,SAAqC,EAAE;QACjD,KAAK,mBAEE,MAAM,GAEX,qCAAkB,kCAEb,UAAU,KACb,cAAc,EAAE,kBAAkB,KAEpC,MAAM,EACN,SAAS,CACV,CAAC;IACJ,CAAC;CACF;AAlBD,0CAkBC","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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceResponse } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\n\nimport { VERSION } from '../../version';\n\nconst USER_AGENT = {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n};\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceResponse>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n {\n ...config,\n },\n JsonLogsSerializer,\n {\n ...USER_AGENT,\n 'Content-Type': 'application/json',\n },\n 'LOGS',\n 'v1/logs'\n );\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAOH,0EAAqE;AACrE,sEAAqE;AACrE,2CAAwC;AACxC,2EAGqD;AAErD;;GAEG;AACH,MAAa,eACX,SAAQ,qCAAqC;IAG7C,YAAY,SAAqC,EAAE;QACjD,KAAK,CACH,IAAA,wCAA4B,EAC1B,IAAA,oCAAwB,EAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;YAClD,YAAY,EAAE,iCAAiC,iBAAO,EAAE;YACxD,cAAc,EAAE,kBAAkB;SACnC,CAAC,EACF,qCAAkB,CACnB,CACF,CAAC;IACJ,CAAC;CACF;AAfD,0CAeC","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 type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport { OTLPExporterBase } from '@opentelemetry/otlp-exporter-base';\nimport { JsonLogsSerializer } from '@opentelemetry/otlp-transformer';\nimport { VERSION } from '../../version';\nimport {\n convertLegacyHttpOptions,\n createOtlpHttpExportDelegate,\n} from '@opentelemetry/otlp-exporter-base/node-http';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterBase<ReadableLogRecord[]>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n super(\n createOtlpHttpExportDelegate(\n convertLegacyHttpOptions(config, 'LOGS', 'v1/logs', {\n 'User-Agent': `OTel-OTLP-Exporter-JavaScript/${VERSION}`,\n 'Content-Type': 'application/json',\n }),\n JsonLogsSerializer\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-logs-otlp-http",
3
- "version": "0.54.2",
3
+ "version": "0.56.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -70,11 +70,11 @@
70
70
  ],
71
71
  "sideEffects": false,
72
72
  "devDependencies": {
73
- "@babel/core": "7.25.2",
74
- "@babel/preset-env": "7.25.4",
73
+ "@babel/core": "7.26.0",
74
+ "@babel/preset-env": "7.26.0",
75
75
  "@opentelemetry/api": "1.9.0",
76
- "@opentelemetry/resources": "1.27.0",
77
- "@types/mocha": "10.0.8",
76
+ "@opentelemetry/resources": "1.29.0",
77
+ "@types/mocha": "10.0.10",
78
78
  "@types/node": "18.6.5",
79
79
  "@types/sinon": "17.0.3",
80
80
  "@types/webpack-env": "1.16.3",
@@ -88,12 +88,12 @@
88
88
  "karma-spec-reporter": "0.0.36",
89
89
  "karma-webpack": "5.0.1",
90
90
  "lerna": "6.6.2",
91
- "mocha": "10.7.3",
91
+ "mocha": "10.8.2",
92
92
  "nyc": "15.1.0",
93
93
  "sinon": "15.1.2",
94
94
  "ts-loader": "9.5.1",
95
95
  "typescript": "4.4.4",
96
- "webpack": "5.94.0",
96
+ "webpack": "5.96.1",
97
97
  "webpack-cli": "5.1.4",
98
98
  "webpack-merge": "5.10.0"
99
99
  },
@@ -101,11 +101,11 @@
101
101
  "@opentelemetry/api": "^1.3.0"
102
102
  },
103
103
  "dependencies": {
104
- "@opentelemetry/api-logs": "0.54.2",
105
- "@opentelemetry/core": "1.27.0",
106
- "@opentelemetry/otlp-exporter-base": "0.54.2",
107
- "@opentelemetry/otlp-transformer": "0.54.2",
108
- "@opentelemetry/sdk-logs": "0.54.2"
104
+ "@opentelemetry/api-logs": "0.56.0",
105
+ "@opentelemetry/core": "1.29.0",
106
+ "@opentelemetry/otlp-exporter-base": "0.56.0",
107
+ "@opentelemetry/otlp-transformer": "0.56.0",
108
+ "@opentelemetry/sdk-logs": "0.56.0"
109
109
  },
110
- "gitHead": "72c9af91983e4b7aade98c901bd45c6cefee0da4"
110
+ "gitHead": "85dcbc7c55f002837f1bf1bf01145dbb34a55b40"
111
111
  }