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

Add OpenTracingShimBuilder class and test #3129

Closed

Conversation

IrisTuntun
Copy link

Add OpenTracingShimBuilder class to simplify OpenTracingShim creational patterns. Future use cases should not depend on OpenTracingShim any more.

resolve #3084

private OpenTracingPropagators propagators = OpenTracingPropagators.builder().build();

/** Returns a new {@code OpenTracingShimBuilder} instance. */
public static OpenTracingShimBuilder builder(){
Copy link
Contributor

Choose a reason for hiding this comment

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

Our pattern for this is to have this method live in the OpenTracingShim class, rather than here.

@@ -11,6 +11,9 @@
import io.opentelemetry.api.trace.TracerProvider;

/**
* This class is deprecated. Please Use {@link OpenTracingShimBuilder} instead to create an
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm. I wonder if it would be good to keep this class, just with the builder() method on it, to keep the patterns the same as they are in the rest of the code. It does make this class a bit anemic, but it was already that way. :)

@jkwatson
Copy link
Contributor

jkwatson commented Jun 8, 2021

@IrisTuntun are you planning on picking this up again at some point?

@anuraaga
Copy link
Contributor

anuraaga commented Jun 8, 2021

@jkwatson I had originally suggested holding off on this until the spec issue, which hasn't gotten any input on yet

#3084 (comment)

@jkwatson jkwatson added the blocked:spec blocked on open or unresolved spec label Jun 9, 2021
@jkwatson jkwatson removed the request for review from tylerbenson April 8, 2022 17:26
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 22, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2022

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked:spec blocked on open or unresolved spec Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify OpenTracingShim creational patterns
3 participants