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

Tags: Add support for TagMetadata #424

Merged
merged 2 commits into from
Mar 19, 2019

Conversation

mayurkale22
Copy link
Member

Specs: https://github.com/census-instrumentation/opencensus-specs/blob/master/tags/TagMap.md#tagmetadata

This PR contains support for recordingTagMetadata, there will be another PR after #326 to enforce check on propagating tags at Receiver and Sender level (https://github.com/census-instrumentation/opencensus-specs/blob/master/tags/TagMap.md#processing-at-receiver-and-sender).

Fixes #296

@codecov-io
Copy link

codecov-io commented Mar 14, 2019

Codecov Report

Merging #424 into master will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #424      +/-   ##
==========================================
+ Coverage   94.88%   94.94%   +0.05%     
==========================================
  Files         140      141       +1     
  Lines        9293     9333      +40     
  Branches      671      672       +1     
==========================================
+ Hits         8818     8861      +43     
+ Misses        475      472       -3
Impacted Files Coverage Δ
src/index.ts 100% <0%> (ø) ⬆️
src/tags/tag-map.ts 100% <0%> (ø) ⬆️
test/test-tag-map.ts 100% <0%> (ø) ⬆️
src/exporters/console-exporter.ts 72.41% <0%> (ø) ⬆️
test/test-recorder.ts 100% <0%> (ø) ⬆️
src/tags/types.ts 100% <0%> (ø)
src/grpc.ts 93.72% <0%> (+0.02%) ⬆️
src/http.ts 91.28% <0%> (+0.07%) ⬆️
src/stackdriver-monitoring.ts 83.33% <0%> (+3.12%) ⬆️

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 8b80a65...beec862. Read the comment docs.

@@ -25,3 +25,38 @@ export interface TagValue {
/** The value of a tag. */
readonly value: string;
}

/** TagValueWithMetadata holds a TagValue and a TagMetadata. */
export interface TagValueWithMetadata {
Copy link
Contributor

Choose a reason for hiding this comment

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

If possible please don't expose this in the public APIs. In Java it's used as an internal implementation class (not part of API).

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, now this interface is limited to core package only.

Copy link
Contributor

@draffensperger draffensperger left a comment

Choose a reason for hiding this comment

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

LGTM, pending fix Yang requested

@mayurkale22 mayurkale22 merged commit d838da0 into census-instrumentation:master Mar 19, 2019
@mayurkale22 mayurkale22 deleted the tag-metadata branch March 19, 2019 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants