Skip to content

Conversation

@tisonkun
Copy link
Contributor

@tisonkun tisonkun requested a review from a team as a code owner May 24, 2025 09:58
@codecov
Copy link

codecov bot commented May 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.0%. Comparing base (8882c31) to head (2ffbdd4).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3004   +/-   ##
=====================================
  Coverage   81.0%   81.0%           
=====================================
  Files        126     126           
  Lines      24753   24754    +1     
=====================================
+ Hits       20070   20071    +1     
  Misses      4683    4683           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fn log(&self, record: &Record) {
if self.enabled(record.metadata()) {
let mut log_record = self.logger.create_log_record();
log_record.set_observed_timestamp(std::time::SystemTime::now());
Copy link
Member

Choose a reason for hiding this comment

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

https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-sdk/src/logs/logger.rs#L46-L47

This is already set correctly in the SDK Implementation, so no need to set it from the appenders. Is there any advantage this should be set from the appender itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good to know. Thanks!

@tisonkun tisonkun closed this May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants