From 29c46ef5cefe2cc3bf88a64c9ba810aa557f7a06 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Fri, 12 May 2023 11:12:42 +0200 Subject: [PATCH] fix(otlp-transformer): move api-logs to dependencies (#3798) --- experimental/CHANGELOG.md | 2 ++ experimental/packages/otlp-transformer/package.json | 4 ++-- scripts/peer-api-check.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 509ef5d4bf..bd13465ddf 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -10,6 +10,8 @@ All notable changes to experimental packages in this project will be documented ### :bug: (Bug Fix) +fix(otlp-transformer): move api-logs to dependencies [#3798](https://github.com/open-telemetry/opentelemetry-js/pull/3798) @pichlermarc + ### :books: (Refine Doc) ### :house: (Internal) diff --git a/experimental/packages/otlp-transformer/package.json b/experimental/packages/otlp-transformer/package.json index bae16536f1..25e19a9994 100644 --- a/experimental/packages/otlp-transformer/package.json +++ b/experimental/packages/otlp-transformer/package.json @@ -52,8 +52,7 @@ "README.md" ], "peerDependencies": { - "@opentelemetry/api": ">=1.3.0 <1.5.0", - "@opentelemetry/api-logs": "0.39.0" + "@opentelemetry/api": ">=1.3.0 <1.5.0" }, "devDependencies": { "@opentelemetry/api": "1.4.1", @@ -78,6 +77,7 @@ "dependencies": { "@opentelemetry/core": "1.13.0", "@opentelemetry/resources": "1.13.0", + "@opentelemetry/api-logs": "0.39.0", "@opentelemetry/sdk-logs": "0.39.0", "@opentelemetry/sdk-metrics": "1.13.0", "@opentelemetry/sdk-trace-base": "1.13.0" diff --git a/scripts/peer-api-check.js b/scripts/peer-api-check.js index 27abe9124d..bb5a1bea07 100644 --- a/scripts/peer-api-check.js +++ b/scripts/peer-api-check.js @@ -24,7 +24,7 @@ const appRoot = process.cwd(); const packageJsonUrl = path.resolve(`${appRoot}/package.json`); const pjson = require(packageJsonUrl); -const needCheckPackages = ['@opentelemetry/api', '@opentelemetry/api-logs']; +const needCheckPackages = ['@opentelemetry/api']; function checkPackage(package) { if (pjson.dependencies && pjson.dependencies[package])