Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editoast: change from 'env_logger' to 'tracing-subscriber' #6650

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

woshilapin
Copy link
Contributor

@woshilapin woshilapin commented Feb 15, 2024

With the objective to instrument editoast with OpenTelemetry, let's use tracing-subscriber which will allow configuring a stdout logger with an Opentelemetry emitter.

See also #6649 for the change to tracing for the log's record emission.

Before

image

After

image

@woshilapin woshilapin requested a review from a team as a code owner February 15, 2024 11:21
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (44a0cd1) 27.75% compared to head (61ee41e) 27.73%.
Report is 1 commits behind head on dev.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6650      +/-   ##
============================================
- Coverage     27.75%   27.73%   -0.02%     
  Complexity     2172     2172              
============================================
  Files          1041     1042       +1     
  Lines        128289   128465     +176     
  Branches       2569     2569              
============================================
+ Hits          35608    35633      +25     
- Misses        91196    91347     +151     
  Partials       1485     1485              
Flag Coverage Δ
core 79.36% <ø> (ø)
editoast 75.19% <ø> (-0.03%) ⬇️
front 8.35% <ø> (+0.01%) ⬆️
gateway 2.50% <ø> (ø)
railjson_generator 87.25% <ø> (ø)
tests 81.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@woshilapin woshilapin force-pushed the wsl/feat/env_logger-to-tracing branch 2 times, most recently from e219c0d to 99fb4b5 Compare February 15, 2024 11:40
@woshilapin woshilapin force-pushed the wsl/feat/env_logger-to-tracing branch from 99fb4b5 to 0579b84 Compare February 15, 2024 14:01
Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

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

LGTM

With the objective to instrument `editoast` with OpenTelemetry,
let's use `tracing-subscriber` which will allow to configure a
stdout logger with an Opentelemetry emitter.
@woshilapin woshilapin force-pushed the wsl/feat/env_logger-to-tracing branch from 0579b84 to 61ee41e Compare February 19, 2024 10:50
@woshilapin woshilapin enabled auto-merge February 19, 2024 10:51
@woshilapin woshilapin added this pull request to the merge queue Feb 19, 2024
Merged via the queue into dev with commit 32daf08 Feb 19, 2024
22 checks passed
@woshilapin woshilapin deleted the wsl/feat/env_logger-to-tracing branch February 19, 2024 11:22
woshilapin added a commit that referenced this pull request Feb 20, 2024
Following up on #6649 and #6650, `editoast` now can
report all traces events to Opentelemetry or Datadog
depending on runtime configuration.
woshilapin added a commit that referenced this pull request Feb 20, 2024
Following up on #6649 and #6650, `editoast` now can
report all traces events to Opentelemetry or Datadog
depending on runtime configuration.
woshilapin added a commit that referenced this pull request Mar 6, 2024
Following up on #6649 and #6650, `editoast` now can
report all traces events to Opentelemetry or Datadog
depending on runtime configuration.
woshilapin added a commit that referenced this pull request Mar 7, 2024
Following up on #6649 and #6650, `editoast` now can
report all traces events to Opentelemetry or Datadog
depending on runtime configuration.
woshilapin added a commit that referenced this pull request Mar 7, 2024
Following up on #6649 and #6650, `editoast` now can
report all traces events to Opentelemetry or Datadog
depending on runtime configuration.
github-merge-queue bot pushed a commit that referenced this pull request Mar 7, 2024
Following up on #6649 and #6650, `editoast` now can
report all traces events to Opentelemetry or Datadog
depending on runtime configuration.
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.

3 participants