@opentelemetry/exporter-logs-otlp-http 0.44.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,10 @@ var OTLPLogExporter = /** @class */ (function (_super) {
57
57
  return _this;
58
58
  }
59
59
  OTLPLogExporter.prototype.convert = function (logRecords) {
60
- return createExportLogsServiceRequest(logRecords, true);
60
+ return createExportLogsServiceRequest(logRecords, {
61
+ useHex: true,
62
+ useLongBits: false,
63
+ });
61
64
  };
62
65
  OTLPLogExporter.prototype.getDefaultUrl = function (config) {
63
66
  return getDefaultUrl(config);
@@ -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,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH;IACU,mCAAqE;IAG7E,yBAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;QAA/C;QACE,gDAAgD;QAChD,6BACE,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,SAOH;QANC,KAAI,CAAC,QAAQ,yBACR,KAAI,CAAC,QAAQ,GACb,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;;IACJ,CAAC;IAED,iCAAO,GAAP,UAAQ,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,uCAAa,GAAb,UAAc,MAA8B;QAC1C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IACH,sBAAC;AAAD,CAAC,AAzBD,CACU,uBAAuB,GAwBhC","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { baggageUtils, getEnv } from '@opentelemetry/core';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env var\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this._headers = {\n ...this._headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, true);\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
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,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH;IACU,mCAAqE;IAG7E,yBAAY,MAAmC;QAAnC,uBAAA,EAAA,WAAmC;QAA/C;QACE,gDAAgD;QAChD,6BACE,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,SAOH;QANC,KAAI,CAAC,QAAQ,yBACR,KAAI,CAAC,QAAQ,GACb,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;;IACJ,CAAC;IAED,iCAAO,GAAP,UAAQ,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE;YAChD,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,uCAAa,GAAb,UAAc,MAA8B;QAC1C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IACH,sBAAC;AAAD,CAAC,AA5BD,CACU,uBAAuB,GA2BhC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ReadableLogRecord,\n LogRecordExporter,\n} from '@opentelemetry/sdk-logs';\nimport type { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';\nimport type { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { baggageUtils, getEnv } from '@opentelemetry/core';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env var\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this._headers = {\n ...this._headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, {\n useHex: true,\n useLongBits: false,\n });\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
@@ -57,7 +57,10 @@ var OTLPLogExporter = /** @class */ (function (_super) {
57
57
  return _this;
58
58
  }
59
59
  OTLPLogExporter.prototype.convert = function (logRecords) {
60
- return createExportLogsServiceRequest(logRecords, true);
60
+ return createExportLogsServiceRequest(logRecords, {
61
+ useHex: true,
62
+ useLongBits: false,
63
+ });
61
64
  };
62
65
  OTLPLogExporter.prototype.getDefaultUrl = function (config) {
63
66
  return getDefaultUrl(config);
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH;IACU,mCAAkE;IAG1E,yBAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;QAAnD;QACE,4CAA4C;QAC5C,6BACE,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,SAOH;QANC,KAAI,CAAC,OAAO,yBACP,KAAI,CAAC,OAAO,GACZ,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;;IACJ,CAAC;IAED,iCAAO,GAAP,UAAQ,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,uCAAa,GAAb,UAAc,MAAkC;QAC9C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IACH,sBAAC;AAAD,CAAC,AAzBD,CACU,oBAAoB,GAwB7B","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this.headers = {\n ...this.headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, true);\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH;IACU,mCAAkE;IAG1E,yBAAY,MAAuC;QAAvC,uBAAA,EAAA,WAAuC;QAAnD;QACE,4CAA4C;QAC5C,6BACE,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,SAOH;QANC,KAAI,CAAC,OAAO,yBACP,KAAI,CAAC,OAAO,GACZ,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;;IACJ,CAAC;IAED,iCAAO,GAAP,UAAQ,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE;YAChD,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,uCAAa,GAAb,UAAc,MAAkC;QAC9C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IACH,sBAAC;AAAD,CAAC,AA5BD,CACU,oBAAoB,GA2B7B","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this.headers = {\n ...this.headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, {\n useHex: true,\n useLongBits: false,\n });\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.44.0";
1
+ export declare const VERSION = "0.45.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // this is autogenerated file, see scripts/version-update.js
17
- export var VERSION = '0.44.0';
17
+ export var VERSION = '0.45.1';
18
18
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.44.0';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.45.1';\n"]}
@@ -27,7 +27,10 @@ export class OTLPLogExporter extends OTLPExporterBrowserBase {
27
27
  this._headers = Object.assign(Object.assign({}, this._headers), baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS));
28
28
  }
29
29
  convert(logRecords) {
30
- return createExportLogsServiceRequest(logRecords, true);
30
+ return createExportLogsServiceRequest(logRecords, {
31
+ useHex: true,
32
+ useLongBits: false,
33
+ });
31
34
  }
32
35
  getDefaultUrl(config) {
33
36
  return getDefaultUrl(config);
@@ -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,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,uBAAqE;IAG7E,YAAY,SAAiC,EAAE;QAC7C,gDAAgD;QAChD,KAAK,iBACH,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,mCACR,IAAI,CAAC,QAAQ,GACb,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,MAA8B;QAC1C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { baggageUtils, getEnv } from '@opentelemetry/core';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env var\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this._headers = {\n ...this._headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, true);\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
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,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,uBAAqE;IAG7E,YAAY,SAAiC,EAAE;QAC7C,gDAAgD;QAChD,KAAK,iBACH,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,mCACR,IAAI,CAAC,QAAQ,GACb,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE;YAChD,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,MAA8B;QAC1C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { baggageUtils, getEnv } from '@opentelemetry/core';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env var\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this._headers = {\n ...this._headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, {\n useHex: true,\n useLongBits: false,\n });\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
@@ -27,7 +27,10 @@ export class OTLPLogExporter extends OTLPExporterNodeBase {
27
27
  this.headers = Object.assign(Object.assign({}, this.headers), baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS));
28
28
  }
29
29
  convert(logRecords) {
30
- return createExportLogsServiceRequest(logRecords, true);
30
+ return createExportLogsServiceRequest(logRecords, {
31
+ useHex: true,
32
+ useLongBits: false,
33
+ });
31
34
  }
32
35
  getDefaultUrl(config) {
33
36
  return getDefaultUrl(config);
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,oBAAkE;IAG1E,YAAY,SAAqC,EAAE;QACjD,4CAA4C;QAC5C,KAAK,iBACH,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,OAAO,mCACP,IAAI,CAAC,OAAO,GACZ,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,MAAkC;QAC9C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this.headers = {\n ...this.headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, true);\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C;;GAEG;AACH,MAAM,OAAO,eACX,SAAQ,oBAAkE;IAG1E,YAAY,SAAqC,EAAE;QACjD,4CAA4C;QAC5C,KAAK,iBACH,aAAa,EAAE,MAAM,EAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,OAAO,mCACP,IAAI,CAAC,OAAO,GACZ,YAAY,CAAC,uBAAuB,CACrC,MAAM,EAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,8BAA8B,CAAC,UAAU,EAAE;YAChD,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,MAAkC;QAC9C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this.headers = {\n ...this.headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, {\n useHex: true,\n useLongBits: false,\n });\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.44.0";
1
+ export declare const VERSION = "0.45.1";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // this is autogenerated file, see scripts/version-update.js
17
- export const VERSION = '0.44.0';
17
+ export const VERSION = '0.45.1';
18
18
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,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.44.0';\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.45.1';\n"]}
@@ -30,7 +30,10 @@ class OTLPLogExporter extends otlp_exporter_base_1.OTLPExporterBrowserBase {
30
30
  this._headers = Object.assign(Object.assign({}, this._headers), core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_LOGS_HEADERS));
31
31
  }
32
32
  convert(logRecords) {
33
- return (0, otlp_transformer_1.createExportLogsServiceRequest)(logRecords, true);
33
+ return (0, otlp_transformer_1.createExportLogsServiceRequest)(logRecords, {
34
+ useHex: true,
35
+ useLongBits: false,
36
+ });
34
37
  }
35
38
  getDefaultUrl(config) {
36
39
  return (0, config_1.getDefaultUrl)(config);
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,0EAA4E;AAC5E,8CAA2D;AAC3D,sEAAiF;AAEjF,sCAA0C;AAE1C;;GAEG;AACH,MAAa,eACX,SAAQ,4CAAqE;IAG7E,YAAY,SAAiC,EAAE;QAC7C,gDAAgD;QAChD,KAAK,iBACH,aAAa,EAAE,IAAA,aAAM,GAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,mCACR,IAAI,CAAC,QAAQ,GACb,mBAAY,CAAC,uBAAuB,CACrC,IAAA,aAAM,GAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,IAAA,iDAA8B,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,MAA8B;QAC1C,OAAO,IAAA,sBAAa,EAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;CACF;AAzBD,0CAyBC","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { baggageUtils, getEnv } from '@opentelemetry/core';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env var\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this._headers = {\n ...this._headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, true);\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/browser/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,0EAA4E;AAC5E,8CAA2D;AAC3D,sEAAiF;AAEjF,sCAA0C;AAE1C;;GAEG;AACH,MAAa,eACX,SAAQ,4CAAqE;IAG7E,YAAY,SAAiC,EAAE;QAC7C,gDAAgD;QAChD,KAAK,iBACH,aAAa,EAAE,IAAA,aAAM,GAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,QAAQ,mCACR,IAAI,CAAC,QAAQ,GACb,mBAAY,CAAC,uBAAuB,CACrC,IAAA,aAAM,GAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,IAAA,iDAA8B,EAAC,UAAU,EAAE;YAChD,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,MAA8B;QAC1C,OAAO,IAAA,sBAAa,EAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;CACF;AA5BD,0CA4BC","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { OTLPExporterBrowserBase } from '@opentelemetry/otlp-exporter-base';\nimport { baggageUtils, getEnv } from '@opentelemetry/core';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Web\n */\nexport class OTLPLogExporter\n extends OTLPExporterBrowserBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env var\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this._headers = {\n ...this._headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, {\n useHex: true,\n useLongBits: false,\n });\n }\n\n getDefaultUrl(config: OTLPExporterConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
@@ -30,7 +30,10 @@ class OTLPLogExporter extends otlp_exporter_base_1.OTLPExporterNodeBase {
30
30
  this.headers = Object.assign(Object.assign({}, this.headers), core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_LOGS_HEADERS));
31
31
  }
32
32
  convert(logRecords) {
33
- return (0, otlp_transformer_1.createExportLogsServiceRequest)(logRecords, true);
33
+ return (0, otlp_transformer_1.createExportLogsServiceRequest)(logRecords, {
34
+ useHex: true,
35
+ useLongBits: false,
36
+ });
34
37
  }
35
38
  getDefaultUrl(config) {
36
39
  return (0, config_1.getDefaultUrl)(config);
@@ -1 +1 @@
1
- {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,8CAA2D;AAC3D,0EAAyE;AACzE,sEAAiF;AAEjF,sCAA0C;AAE1C;;GAEG;AACH,MAAa,eACX,SAAQ,yCAAkE;IAG1E,YAAY,SAAqC,EAAE;QACjD,4CAA4C;QAC5C,KAAK,iBACH,aAAa,EAAE,IAAA,aAAM,GAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,OAAO,mCACP,IAAI,CAAC,OAAO,GACZ,mBAAY,CAAC,uBAAuB,CACrC,IAAA,aAAM,GAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,IAAA,iDAA8B,EAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,aAAa,CAAC,MAAkC;QAC9C,OAAO,IAAA,sBAAa,EAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;CACF;AAzBD,0CAyBC","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this.headers = {\n ...this.headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, true);\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
1
+ {"version":3,"file":"OTLPLogExporter.js","sourceRoot":"","sources":["../../../../src/platform/node/OTLPLogExporter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,8CAA2D;AAC3D,0EAAyE;AACzE,sEAAiF;AAEjF,sCAA0C;AAE1C;;GAEG;AACH,MAAa,eACX,SAAQ,yCAAkE;IAG1E,YAAY,SAAqC,EAAE;QACjD,4CAA4C;QAC5C,KAAK,iBACH,aAAa,EAAE,IAAA,aAAM,GAAE,CAAC,+BAA+B,IACpD,MAAM,EACT,CAAC;QACH,IAAI,CAAC,OAAO,mCACP,IAAI,CAAC,OAAO,GACZ,mBAAY,CAAC,uBAAuB,CACrC,IAAA,aAAM,GAAE,CAAC,+BAA+B,CACzC,CACF,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,UAA+B;QACrC,OAAO,IAAA,iDAA8B,EAAC,UAAU,EAAE;YAChD,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;IAED,aAAa,CAAC,MAAkC;QAC9C,OAAO,IAAA,sBAAa,EAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;CACF;AA5BD,0CA4BC","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 { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\nimport { getEnv, baggageUtils } from '@opentelemetry/core';\nimport { OTLPExporterNodeBase } from '@opentelemetry/otlp-exporter-base';\nimport { createExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';\n\nimport { getDefaultUrl } from '../config';\n\n/**\n * Collector Logs Exporter for Node\n */\nexport class OTLPLogExporter\n extends OTLPExporterNodeBase<ReadableLogRecord, IExportLogsServiceRequest>\n implements LogRecordExporter\n{\n constructor(config: OTLPExporterNodeConfigBase = {}) {\n // load OTEL_EXPORTER_OTLP_LOGS_TIMEOUT env\n super({\n timeoutMillis: getEnv().OTEL_EXPORTER_OTLP_LOGS_TIMEOUT,\n ...config,\n });\n this.headers = {\n ...this.headers,\n ...baggageUtils.parseKeyPairsIntoRecord(\n getEnv().OTEL_EXPORTER_OTLP_LOGS_HEADERS\n ),\n };\n }\n\n convert(logRecords: ReadableLogRecord[]): IExportLogsServiceRequest {\n return createExportLogsServiceRequest(logRecords, {\n useHex: true,\n useLongBits: false,\n });\n }\n\n getDefaultUrl(config: OTLPExporterNodeConfigBase): string {\n return getDefaultUrl(config);\n }\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.44.0";
1
+ export declare const VERSION = "0.45.1";
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.44.0';
20
+ exports.VERSION = '0.45.1';
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.44.0';\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.45.1';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/exporter-logs-otlp-http",
3
- "version": "0.44.0",
3
+ "version": "0.45.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -72,11 +72,11 @@
72
72
  "sideEffects": false,
73
73
  "devDependencies": {
74
74
  "@babel/core": "7.22.20",
75
- "@opentelemetry/api": "1.6.0",
76
- "@opentelemetry/resources": "1.17.1",
77
- "@types/mocha": "10.0.2",
75
+ "@opentelemetry/api": "1.7.0",
76
+ "@opentelemetry/resources": "1.18.1",
77
+ "@types/mocha": "10.0.3",
78
78
  "@types/node": "18.6.5",
79
- "@types/sinon": "10.0.18",
79
+ "@types/sinon": "10.0.20",
80
80
  "@types/webpack-env": "1.16.3",
81
81
  "babel-loader": "8.3.0",
82
82
  "babel-plugin-istanbul": "6.1.1",
@@ -89,7 +89,7 @@
89
89
  "karma-mocha": "2.0.1",
90
90
  "karma-spec-reporter": "0.0.36",
91
91
  "karma-webpack": "4.0.2",
92
- "lerna": "7.1.5",
92
+ "lerna": "6.6.2",
93
93
  "mocha": "10.2.0",
94
94
  "nyc": "15.1.0",
95
95
  "sinon": "15.1.2",
@@ -104,11 +104,11 @@
104
104
  "@opentelemetry/api": "^1.0.0"
105
105
  },
106
106
  "dependencies": {
107
- "@opentelemetry/api-logs": "0.44.0",
108
- "@opentelemetry/core": "1.17.1",
109
- "@opentelemetry/otlp-exporter-base": "0.44.0",
110
- "@opentelemetry/otlp-transformer": "0.44.0",
111
- "@opentelemetry/sdk-logs": "0.44.0"
107
+ "@opentelemetry/api-logs": "0.45.1",
108
+ "@opentelemetry/core": "1.18.1",
109
+ "@opentelemetry/otlp-exporter-base": "0.45.1",
110
+ "@opentelemetry/otlp-transformer": "0.45.1",
111
+ "@opentelemetry/sdk-logs": "0.45.1"
112
112
  },
113
- "gitHead": "f8e187b473274cc2011e7385992f07d319d667dc"
113
+ "gitHead": "f665499096189390e691cf1a772e677fa67812d7"
114
114
  }