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: replace log with tracing #6649

Merged
merged 1 commit into from
Feb 19, 2024
Merged

editoast: replace log with tracing #6649

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, tracing can bring some ease-of-use macros for instrumenting functions.

This PR is a first step to move to tracing (only the log event generation). See also #6650 for converting the log's records listener.

With the objective to instrument `editoast` with OpenTelemetry,
`tracing` can bring some ease-of-use macros for instrumenting
functions.

This PR is a first step to move to `tracing` (only the log event generation).
@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

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (0b7e794) 27.87% compared to head (94c9e16) 27.87%.

Files Patch % Lines
editoast/src/core/mod.rs 0.00% 4 Missing ⚠️
editoast/src/generated_data/mod.rs 0.00% 4 Missing ⚠️
editoast/src/views/openapi.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6649      +/-   ##
============================================
- Coverage     27.87%   27.87%   -0.01%     
  Complexity     2171     2171              
============================================
  Files          1044     1044              
  Lines        127905   127909       +4     
  Branches       2601     2601              
============================================
- Hits          35656    35655       -1     
- Misses        90731    90736       +5     
  Partials       1518     1518              
Flag Coverage Δ
core 79.35% <ø> (ø)
editoast 75.20% <40.00%> (-0.02%) ⬇️
front 8.42% <ø> (ø)
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.

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

@woshilapin woshilapin added this pull request to the merge queue Feb 19, 2024
@woshilapin woshilapin removed the request for review from leovalais February 19, 2024 09:55
Merged via the queue into dev with commit 44a0cd1 Feb 19, 2024
22 checks passed
@woshilapin woshilapin deleted the wsl/feat/log-to-tracing branch February 19, 2024 10:18
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