Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

feat(trace): add optional schema url to TracerProvider.getTracer #129

Merged
merged 5 commits into from
Jan 13, 2022

Conversation

legendecas
Copy link
Member

@legendecas legendecas commented Oct 29, 2021

According to the conclusion at open-telemetry/opentelemetry-js#2529 (comment), the new optional parameter of TracerProvider.getTracer should be put into an option bag to prevent from breaking existing SDK implementations. In this way, we can also reserve the possibility for future extensions.

Fixes #125
Fixes open-telemetry/opentelemetry-js#2535

@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #129 (78a5f7a) into main (ae9bead) will increase coverage by 0.20%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #129      +/-   ##
==========================================
+ Coverage   94.47%   94.67%   +0.20%     
==========================================
  Files          42       42              
  Lines         579      582       +3     
  Branches       94       94              
==========================================
+ Hits          547      551       +4     
+ Misses         32       31       -1     
Impacted Files Coverage Δ
src/trace/NoopTracerProvider.ts 100.00% <100.00%> (+20.00%) ⬆️
src/trace/ProxyTracer.ts 100.00% <100.00%> (ø)
src/trace/ProxyTracerProvider.ts 93.75% <100.00%> (+0.41%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae9bead...78a5f7a. Read the comment docs.

@legendecas legendecas force-pushed the schema-url branch 3 times, most recently from cf082aa to 13e0ab4 Compare October 29, 2021 08:36
@legendecas legendecas marked this pull request as ready for review November 11, 2021 07:32
@vmarchaud
Copy link
Member

ping @dyladan :)

@vmarchaud vmarchaud mentioned this pull request Jan 11, 2022
@vmarchaud vmarchaud requested a review from a team January 11, 2022 19:47
Copy link
Member

@dyladan dyladan left a comment

Choose a reason for hiding this comment

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

Everything looks good % the thread comment i'd like to discuss tomorrow at SIG

src/trace/NoopTracerProvider.ts Show resolved Hide resolved
@dyladan
Copy link
Member

dyladan commented Jan 11, 2022

@legendecas feel free to merge this when you're ready

src/trace/tracer_provider.ts Show resolved Hide resolved
@legendecas legendecas merged commit aa65fc6 into open-telemetry:main Jan 13, 2022
@legendecas legendecas deleted the schema-url branch January 13, 2022 03:26
@dyladan dyladan added this to the v1.1 milestone Jan 20, 2022
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.

Schema URL support Resource + api getTracer Support spec v1.4.0 schema url in tracer
7 participants