Skip to content

feat(sdk-node)!: Automatically configure logs exporter#4740

Merged
trentm merged 19 commits intoopen-telemetry:mainfrom
mhennoch:logs-env-variable
Aug 19, 2024
Merged

feat(sdk-node)!: Automatically configure logs exporter#4740
trentm merged 19 commits intoopen-telemetry:mainfrom
mhennoch:logs-env-variable

Conversation

@mhennoch
Copy link
Copy Markdown
Contributor

Which problem is this PR solving?

Fixes #4552 #4451

Short description of the changes

See #4552. I hope changes to LoggerProviderConfig are not breaking. It is exported but I don't think anyone is using it.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@mhennoch mhennoch requested a review from a team May 28, 2024 14:09
@trentm trentm linked an issue May 31, 2024 that may be closed by this pull request
Comment thread experimental/packages/opentelemetry-sdk-node/src/utils.ts
Copy link
Copy Markdown
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. I had a few comments, but overall looks good. 🙂

Comment thread experimental/packages/opentelemetry-sdk-node/package.json Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.04%. Comparing base (ecc88a3) to head (4c03ca0).
Report is 55 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4740   +/-   ##
=======================================
  Coverage   91.04%   91.04%           
=======================================
  Files          89       89           
  Lines        1954     1955    +1     
  Branches      416      416           
=======================================
+ Hits         1779     1780    +1     
  Misses        175      175           

Comment thread experimental/CHANGELOG.md Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts Outdated
@mhennoch
Copy link
Copy Markdown
Contributor Author

mhennoch commented Aug 6, 2024

All comments should be addressed @trentm @pichlermarc

Copy link
Copy Markdown
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Just a few nits.

Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts Outdated
Comment thread experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts
Copy link
Copy Markdown
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just the one discussion about calling this a breaking change (for the microscopic type change).

Comment thread experimental/packages/opentelemetry-sdk-node/src/sdk.ts
@mhennoch mhennoch changed the title feat(sdk-node): Automatically configure logs exporter feat(sdk-node)!: Automatically configure logs exporter Aug 16, 2024
Copy link
Copy Markdown
Contributor

@JacksonWeber JacksonWeber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@trentm trentm added this pull request to the merge queue Aug 19, 2024
Merged via the queue into open-telemetry:main with commit 14d086a Aug 19, 2024
Zirak pushed a commit to Zirak/opentelemetry-js that referenced this pull request Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants