Skip to content

otel: fix initialization / error-handling#10717

Merged
milas merged 1 commit intodocker:v2from
milas:otel-init-fixes
Jun 15, 2023
Merged

otel: fix initialization / error-handling#10717
milas merged 1 commit intodocker:v2from
milas:otel-init-fixes

Conversation

@milas
Copy link
Copy Markdown
Contributor

@milas milas commented Jun 15, 2023

What I did

  • If there's no otel key (or the value is null) in the config, don't return an error
  • Propagate error from the exporter instead of panicking

(not mandatory) A picture of a cute animal, if possible in relation to what you did
baby mountain lion cubs

@milas milas added the kind/bug label Jun 15, 2023
@milas milas requested a review from a team June 15, 2023 15:44
@milas milas self-assigned this Jun 15, 2023
@milas milas requested review from StefanScherer, glours, laurazard, ndeloof, nicksieger and ulyssessouza and removed request for a team June 15, 2023 15:44
Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 15, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.06 ⚠️

Comparison is base (7ffe83d) 58.99% compared to head (56cec78) 58.94%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10717      +/-   ##
==========================================
- Coverage   58.99%   58.94%   -0.06%     
==========================================
  Files         112      112              
  Lines        9735     9735              
==========================================
- Hits         5743     5738       -5     
- Misses       3406     3409       +3     
- Partials      586      588       +2     
Impacted Files Coverage Δ
internal/tracing/docker_context.go 23.43% <0.00%> (-1.16%) ⬇️
internal/tracing/mux.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

* If there's no `otel` key (or the value is `null`) in the config,
  don't return an error
* Propagate error from the exporter instead of panicking

Signed-off-by: Milas Bowman <[email protected]>
@milas milas force-pushed the otel-init-fixes branch from 1c2d73a to 56cec78 Compare June 15, 2023 16:18
@milas milas merged commit ff3984e into docker:v2 Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants