@opentelemetry/exporter-logs-otlp-http 0.201.1 → 0.203.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  **Note: This is an experimental package under active development. New releases may include breaking changes.**
7
7
 
8
- This module provides a logs-exporter for OTLP (http/json) using protocol version `v0.20.0`.
8
+ This module provides a logs-exporter for OTLP (http/json) using protocol version `v1.7.0`.
9
9
 
10
10
  ## Installation
11
11
 
@@ -37,9 +37,9 @@ const collectorOptions = {
37
37
  concurrencyLimit: 1, // an optional limit on pending requests
38
38
  };
39
39
  const logExporter = new OTLPLogExporter(collectorOptions);
40
- const loggerProvider = new LoggerProvider();
41
-
42
- loggerProvider.addLogRecordProcessor(new BatchLogRecordProcessor(logExporter));
40
+ const loggerProvider = new LoggerProvider({
41
+ processors: [new BatchRecordProcessor(logExporter)]
42
+ });
43
43
 
44
44
  const logger = loggerProvider.getLogger('default', '1.0.0');
45
45
  // Emit a log
@@ -66,9 +66,9 @@ const collectorOptions = {
66
66
  concurrencyLimit: 1, // an optional limit on pending requests
67
67
  };
68
68
  const logExporter = new OTLPLogExporter(collectorOptions);
69
- const loggerProvider = new LoggerProvider();
70
-
71
- loggerProvider.addLogRecordProcessor(new BatchLogRecordProcessor(logExporter));
69
+ const loggerProvider = new LoggerProvider({
70
+ processors: [new BatchRecordProcessor(logExporter)]
71
+ });
72
72
 
73
73
  const logger = loggerProvider.getLogger('default', '1.0.0');
74
74
  // Emit a log
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.201.1";
1
+ export declare const VERSION = "0.203.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.201.1';
17
+ export const VERSION = '0.203.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,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.201.1';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.203.0';\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.201.1";
1
+ export declare const VERSION = "0.203.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.201.1';
17
+ export const VERSION = '0.203.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,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.201.1';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.203.0';\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.201.1";
1
+ export declare const VERSION = "0.203.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.201.1';
20
+ exports.VERSION = '0.203.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,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.201.1';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,SAAS,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.203.0';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/exporter-logs-otlp-http",
3
- "version": "0.201.1",
3
+ "version": "0.203.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -70,8 +70,8 @@
70
70
  ],
71
71
  "sideEffects": false,
72
72
  "devDependencies": {
73
- "@babel/core": "7.26.10",
74
- "@babel/preset-env": "7.26.9",
73
+ "@babel/core": "7.27.1",
74
+ "@babel/preset-env": "7.27.2",
75
75
  "@opentelemetry/api": "1.9.0",
76
76
  "@opentelemetry/resources": "2.0.1",
77
77
  "@types/mocha": "10.0.10",
@@ -90,21 +90,21 @@
90
90
  "lerna": "6.6.2",
91
91
  "mocha": "11.1.0",
92
92
  "nyc": "17.1.0",
93
- "sinon": "15.1.2",
93
+ "sinon": "18.0.1",
94
94
  "ts-loader": "9.5.2",
95
95
  "typescript": "5.0.4",
96
- "webpack": "5.99.8",
96
+ "webpack": "5.99.9",
97
97
  "webpack-cli": "6.0.1"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "@opentelemetry/api": "^1.3.0"
101
101
  },
102
102
  "dependencies": {
103
- "@opentelemetry/api-logs": "0.201.1",
103
+ "@opentelemetry/api-logs": "0.203.0",
104
104
  "@opentelemetry/core": "2.0.1",
105
- "@opentelemetry/otlp-exporter-base": "0.201.1",
106
- "@opentelemetry/otlp-transformer": "0.201.1",
107
- "@opentelemetry/sdk-logs": "0.201.1"
105
+ "@opentelemetry/otlp-exporter-base": "0.203.0",
106
+ "@opentelemetry/otlp-transformer": "0.203.0",
107
+ "@opentelemetry/sdk-logs": "0.203.0"
108
108
  },
109
- "gitHead": "9dbd1e446be0ecc7c22b00051c5cfb2612d9b0f2"
109
+ "gitHead": "93187f022457da152becc03dd00db8b2500702db"
110
110
  }