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

Allow injecting into maps of type Map<String,Object> #310

Merged
merged 2 commits into from
Oct 19, 2018

Conversation

tylerbenson
Copy link

For the inject case, it doesn’t matter so much that the generic type is declared as String.

For the inject case, it doesn’t matter so much that the generic type is declared as String.
@coveralls
Copy link

coveralls commented Oct 12, 2018

Coverage Status

Coverage increased (+1.8%) to 75.897% when pulling 7e52811 on tylerbenson:tyler/fix-generic-type into d6c6509 on opentracing:v0.32.0.

@yurishkuro
Copy link
Member

not sure I follow this change. It still refers to string, and string is not extensible: public final class String

@carlosalberto
Copy link
Collaborator

@yurishkuro If I'm correct, it allows a Map<String, Object> to be passed, so String objects are appended/set as values to the underlying map.

@yurishkuro
Copy link
Member

we should have a test demonstrating that.

@tylerbenson
Copy link
Author

@yurishkuro ok I modified the map in the test to use Object instead of String. Is that what you were asking for?

Ideally we could do something similar for TextMapExtractAdapter, but that's not quite as straightforward.

@carlosalberto
Copy link
Collaborator

@tylerbenson Thanks for the update

@yurishkuro Ok to merge this PR?

@yurishkuro yurishkuro merged commit b6f6324 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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants