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

[tracing] LightStep OpenTracing support #2100

Merged
merged 4 commits into from
Jan 12, 2020
Merged

Conversation

schallert
Copy link
Collaborator

  • Add LightStep as a supported OT backend.
  • Update docs.

What this PR does / why we need it:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

Add support for LightStep as a tracing backend.

Does this PR require updating code package or user-facing documentation?:


- Add LightStep as a supported OT backend.
- Update docs.
@codecov
Copy link

codecov bot commented Jan 11, 2020

Codecov Report

Merging #2100 into master will increase coverage by 2.2%.
The diff coverage is 94.7%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #2100      /-   ##
========================================
  Coverage    70.2%   72.4%    2.2%     
========================================
  Files        1004    1008       4     
  Lines       86378   86653     275     
========================================
  Hits        60650   62756    2106     
  Misses      21580   19710   -1870     
- Partials     4148    4187      39
Flag Coverage Δ
#aggregator 82% <ø> (-0.1%) ⬇️
#cluster 85.6% <ø> ( 19%) ⬆️
#collector 64.8% <ø> (ø) ⬆️
#dbnode 79.7% <ø> ( 0.1%) ⬆️
#m3em 73.2% <ø> ( 0.9%) ⬆️
#m3ninx 73.9% <ø> ( 3%) ⬆️
#m3nsch 51.1% <ø> ( 22.7%) ⬆️
#metrics 17.6% <ø> (ø) ⬆️
#msg 74.7% <ø> (ø) ⬆️
#query 68.5% <100%> ( 1.6%) ⬆️
#x 83.2% <94.5%> ( 7.8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1cf3ea...b49c149. Read the comment docs.

@schallert schallert marked this pull request as ready for review January 11, 2020 04:36

lightstep "github.com/lightstep/lightstep-tracer-go"
"github.com/m3db/m3/src/x/instrument"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: github.com/m3db/m3... imports in the middle separated from the third party exports at the bottom? (linting seems to be turned off right now)

// Supported tracing backends. Currently only jaeger is supported.
var (
TracingBackendJaeger = "jaeger"
TracingBackendJaeger = "jaeger"
TracingBackendLightstep = "lightstep"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Comments on these exported symbols?

tags[spanTagBuildVersion] = instrument.Version
tags[spanTagBuildDate] = instrument.BuildDate
tags[spanTagBuildTimeUnix] = instrument.BuildTimeUnix
tags[spanTagBuildGoVersion] = runtime.Version()
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 these seem quite valuable - should we add them to cfg.Jaeger.NewTracer(...) with cfg.Jaeger.NewTracer(..., jaeger.TracerOptions.Tag(key, value), jaeger.TracerOptions.Tag(key, value), ...) as options?

ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
l.tracer.Close(ctx)
cancel()
return nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth returning ctx.Error() perhaps? (in case it was timed out)

Copy link
Collaborator

@robskillington robskillington left a comment

Choose a reason for hiding this comment

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

LGTM other than minor comments

@schallert schallert merged commit 3015ec7 into master Jan 12, 2020
@schallert schallert deleted the schallert/lightstep_tracing branch January 12, 2020 14:56
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