Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Add generic typed setTag/withTag #311

Merged
merged 2 commits into from
Oct 19, 2018

Conversation

tylerbenson
Copy link

Reduces the need to call Tags.SOMETAG.getKey() and adds type safety for setTag if done from the span.

Fixes #271

Reduces the need to call Tags.SOMETAG.getKey() and adds type safety for setTag if done from the span.

Fixes opentracing#271
@coveralls
Copy link

coveralls commented Oct 12, 2018

Coverage Status

Coverage decreased (-0.8%) to 76.645% when pulling abb8375 on tylerbenson:tyler/withtag into 9202384 on opentracing:v0.32.0.

@yurishkuro yurishkuro added the breaking_change Introduces a breaking change label Oct 12, 2018
@yurishkuro
Copy link
Member

+1

@felixbarny
Copy link
Contributor

Nice one.
Why is this considered a breaking change?

@yurishkuro
Copy link
Member

yurishkuro commented Oct 14, 2018

If someone implements the Span interface (e.g. as a decorator), then any change to the interface is a breaking change. But we typically allowed additions.

@yurishkuro
Copy link
Member

We have 2 approvals. @tedsuo @austinlparker do you want to review?

@carlosalberto
Copy link
Collaborator

+1

@tylerbenson
Copy link
Author

One thing to note, I didn't follow @cwe1ss's suggestion to split the method declaration out by type. I don't have anything against that. If y'all prefer the non-generic option I can do that instead. Thoughts?

@austinlparker austinlparker self-requested a review October 19, 2018 16:39
Copy link
Member

@austinlparker austinlparker left a comment

Choose a reason for hiding this comment

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

lgtm

@tedsuo
Copy link
Member

tedsuo commented Oct 19, 2018

LGTM

@carlosalberto
Copy link
Collaborator

@yurishkuro Approved - is it ok if I go ahead and merge?

@yurishkuro yurishkuro merged commit bffd9b6 into opentracing:v0.32.0 Oct 19, 2018
carlosalberto added a commit that referenced this pull request Mar 25, 2019
* Deprecate the StringTag.set() overload taking a StringTag. (#262)
* Implement Trace Identifiers. (#280)
* Bump JaCoCo to use a Java 10 friendly version (#306)
* Remove finish span on close (#301)
  * Deprecate finishSpanOnClose on activation.
  * Add ScopeManager.activeSpan() and Tracer.activateSpan().
  * Clarify the API changes and deprecations.
  * Add an error reporting sample to opentracing-testbed.
* Simple layer on top of ByteBuffer for BINARY format. (#276)
* Add generic typed setTag/withTag (#311)
* Allow injecting into maps of type Map<String,Object> (#310)
* Add simple registerIfAbsent to global tracer (#289)
* Split Inject and Extract Builtin interfaces (#316)
* Deprecate ScopeManager.active() (#326)
* Make Tracer extends Closable. (#329)
* Do not make isRegistered() synchronized. (#333)
* Deprecate AutoFinishScopeManager (#335)
@tylerbenson tylerbenson deleted the tyler/withtag branch June 11, 2019 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking_change Introduces a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants