Add instrumentation library resource to named tracers#632
Add instrumentation library resource to named tracers#632bogdandrutu merged 3 commits intoopen-telemetry:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
sdk/src/main/java/io/opentelemetry/sdk/trace/TracerSdkFactory.java
Outdated
Show resolved
Hide resolved
jkwatson
left a comment
There was a problem hiding this comment.
looks good! Just one issue to create, and it's good to go.
|
needs a rebase |
| this(Resource.getEmpty()); | ||
| } | ||
|
|
||
| public TracerSdk(Resource instrumentationLibrary) { |
There was a problem hiding this comment.
Why using the same Resource object. I think this will confuse users. What about having a InstrumentationLibraryInfo class with these infos?
There was a problem hiding this comment.
I was just sticking to the SDK spec which explicitly states a Resource has to be created, stored and returned. A POJO/AutoValue with properties would be fine with me as well, I'm not a fan of arbitrary key-value pairs for well-known keys anyway.
Would this require a spec change or is a deviation like that up to the implementation since it doesn't change any functionality?
There was a problem hiding this comment.
@bogdandrutu what do you say? Should we keep the Resource as defined by the OTEP and the SDK spec or modify it and go for a dedicated class?
There was a problem hiding this comment.
IHMO a dedicated class would be just fine ;)
58575fb to
d0f3c90
Compare
31c52c7 to
a1aa630
Compare
|
I would prefer a different class:
|
a1aa630 to
9b082ae
Compare
9b082ae to
f4d3cc1
Compare
bogdandrutu
left a comment
There was a problem hiding this comment.
Small not, overall looks good
This implements the instrumentation library resource for named tracers and makes it available to
SpanProcessors (viaReadableSpan) andSpanExporters (viaSpanData).Resolves #617