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

[test] Replace OT const with OTEL #4624

Merged

Conversation

afzal442
Copy link
Contributor

@afzal442 afzal442 commented Aug 4, 2023

Which problem is this PR solving?

Short description of the changes

  • Replace OT const with otel trace spans const i.e. ext.SpanKind.. with trace.SpanKind..

@afzal442 afzal442 requested a review from a team as a code owner August 4, 2023 15:23
@afzal442 afzal442 requested a review from yurishkuro August 4, 2023 15:23
func (handlerOptions) Tracer(tracer *jtracer.JTracer) HandlerOption {
return func(apiHandler *APIHandler) {
apiHandler.tracer = tracer
apiHandler.tracer.OTEL = tracer.OTEL
Copy link
Member

Choose a reason for hiding this comment

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

why this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

I did this to workaround if it was desirable.

@@ -61,10 +61,10 @@ func (handlerOptions) QueryLookbackDuration(queryLookbackDuration time.Duration)
}
}

// Tracer creates a HandlerOption that initializes OpenTracing tracer
// Tracer creates a HandlerOption that initializes Opentelemetry tracer
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Tracer creates a HandlerOption that initializes Opentelemetry tracer
// Tracer creates a HandlerOption that passes the tracer to the handler

@sbin64 sbin64 force-pushed the replace-ot-const-with-otel branch from a7bffdb to 30b94b0 Compare August 4, 2023 15:43
@sbin64 sbin64 force-pushed the replace-ot-const-with-otel branch from 30b94b0 to 70012d2 Compare August 4, 2023 15:43
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (0d06c56) 97.06% compared to head (30b94b0) 97.07%.
Report is 1 commits behind head on main.

❗ Current head 30b94b0 differs from pull request most recent head 70012d2. Consider uploading reports for the commit 70012d2 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4624   +/-   ##
=======================================
  Coverage   97.06%   97.07%           
=======================================
  Files         301      301           
  Lines       17877    17878    +1     
=======================================
+ Hits        17353    17355    +2     
+ Misses        420      419    -1     
  Partials      104      104           
Flag Coverage Δ
unittests 97.07% <ø> (+<0.01%) ⬆️

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

Files Changed Coverage Δ
cmd/query/app/handler_options.go 100.00% <ø> (ø)

... and 2 files with indirect coverage changes

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

@yurishkuro yurishkuro changed the title Replace OT const with OTEL [test] Replace OT const with OTEL Aug 4, 2023
@yurishkuro yurishkuro merged commit 369219c into jaegertracing:main Aug 4, 2023
@sbin64 sbin64 deleted the replace-ot-const-with-otel branch August 4, 2023 17:37
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