Skip to content

Commit

Permalink
fix(sdk-node): use warn instead of error on unknown OTEL_NODE_RESOURC…
Browse files Browse the repository at this point in the history
…E_DETECTORS values (#5034)

Co-authored-by: Marc Pichler <[email protected]>
  • Loading branch information
RichardChukwu and pichlermarc authored Oct 3, 2024
1 parent 3007d3e commit e0e2b4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions experimental/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ All notable changes to experimental packages in this project will be documented
* `appendResourcePathToUrlIfNeeded`
* `configureExporterTimeout`
* `invalidTimeout`
* fix(sdk-node): use warn instead of error on unknown OTEL_NODE_RESOURCE_DETECTORS values [#5034](https://github.com/open-telemetry/opentelemetry-js/pull/5034)

### :books: (Refine Doc)

Expand Down
2 changes: 1 addition & 1 deletion experimental/packages/opentelemetry-sdk-node/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function getResourceDetectorsFromEnv(): Array<DetectorSync> {
return resourceDetectorsFromEnv.flatMap(detector => {
const resourceDetector = resourceDetectors.get(detector);
if (!resourceDetector) {
diag.error(
diag.warn(
`Invalid resource detector "${detector}" specified in the environment variable OTEL_NODE_RESOURCE_DETECTORS`
);
}
Expand Down

0 comments on commit e0e2b4a

Please sign in to comment.