Skip to content

Conversation

rads-1996
Copy link
Contributor

@rads-1996 rads-1996 commented Oct 6, 2025

Description

Implement Spec to filter logs based on min_severity and trace_based parameters.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Added unit tests

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

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

@rads-1996 rads-1996 requested a review from a team as a code owner October 6, 2025 22:10
@rads-1996 rads-1996 force-pushed the trace-based-sampling branch from 3557ca9 to fa903d0 Compare October 7, 2025 16:01
ConcurrentMultiLogRecordProcessor,
],
instrumentation_scope: InstrumentationScope,
min_severity_level: SeverityNumber = SeverityNumber.UNSPECIFIED,
Copy link
Contributor

@lzchen lzchen Oct 13, 2025

Choose a reason for hiding this comment

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

I am a bit wary supporting concepts related to components that are still in development directly into the sdk, especially since we are trying to stabilize logging sdk. It seems like Go is taking the approach of implementing this internally via logrecordprocessors, perhaps this might be a better way so that we don't have to change the public api? Perhaps bring this up in the PYthon SIG.

ConcurrentMultiLogRecordProcessor,
],
instrumentation_scope: InstrumentationScope,
min_severity_level: SeverityNumber = SeverityNumber.UNSPECIFIED,
Copy link
Member

Choose a reason for hiding this comment

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

Is the LoggerConfigurator supposed to be on the LoggerProvider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aabmass Yes, The LoggerProvider MUST compute the relevant LoggerConfig using the configured LoggerConfigurator, and create a Logger whose behavior conforms to that LoggerConfig.

https://github.com/trask/opentelemetry-specification/blob/26df02dd8cebea2e74308cadffe092e0f73e9f40/specification/logs/sdk.md#loggerconfigurator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

4 participants