-
Notifications
You must be signed in to change notification settings - Fork 534
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
updating to core v.0.13.0 #277
Conversation
Codecov Report
@@ Coverage Diff @@
## master #277 +/- ##
==========================================
+ Coverage 94.95% 95.32% +0.36%
==========================================
Files 115 115
Lines 5990 5948 -42
Branches 618 586 -32
==========================================
- Hits 5688 5670 -18
+ Misses 302 278 -24
|
Does the spec require data to be a buffer ? Could we just propagate a base64 value of this buffer ? |
I'm not changing anything in implementation or in the logic itself - previously it was possible but it was replaced with TextMapGetter which is the successor of the previous getter. But TextMapGetter seems not to be compatible to what was previously. |
@dyladan you wrote the TextMapGetter, can you please check it ? |
looking now |
@open-telemetry/javascript-approvers no unresolved things, as talked with @dyladan just added the info there and keep it like this for now until that issue is resolved. |
plugins/node/opentelemetry-plugin-dns/test/integrations/dns-lookup.test.ts
Outdated
Show resolved
Hide resolved
plugins/node/opentelemetry-plugin-dns/test/integrations/dns-lookup.test.ts
Outdated
Show resolved
Hide resolved
plugins/node/opentelemetry-plugin-dns/test/integrations/dnspromise-lookup.test.ts
Outdated
Show resolved
Hide resolved
propagators/opentelemetry-propagator-grpc-census-binary/test/GrpcCensusPropagator.test.ts
Outdated
Show resolved
Hide resolved
} | ||
}, | ||
keys(carrier) { | ||
if (carrier == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use ===
here in my opinion, so the code is explicit and to prevent confusion with coercion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exactly the same as defaultTextMapGetter
the only difference was that I have to call "carrier.get" https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-api/src/context/propagation/TextMapPropagator.ts#L124
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blumamir I agree that we should use strict checking by default however we didn't find a concensus on this, so for now we kinda allow both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, it was just a suggestion.
Using ==
works too :)
return value; | ||
}, | ||
keys(carrier) { | ||
if (carrier == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here, better to use ===
In my opinion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keys is exactly the same as defaultTextMapGetter
https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-api/src/context/propagation/TextMapPropagator.ts#L124
@blumamir updated the statuses code, should be fine, now, thx for spotting that |
plugins/node/opentelemetry-plugin-dns/test/integrations/dnspromise-lookup.test.ts
Outdated
Show resolved
Hide resolved
plugins/node/opentelemetry-plugin-dns/test/integrations/dnspromise-lookup.test.ts
Outdated
Show resolved
Hide resolved
ac22ecd
to
cb377f4
Compare
8caf3d4
to
0a06342
Compare
Unresolved:opentelemetry-propagator-grpc-census-binary
- TextMapGetter has values defined as text whereas this propagator expect data to be Buffer. Should we create a new getter or add this type to TextMapGetter ?Resolved