Skip to content
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

Add setters to span.metrics from MutableSpan #1985

Merged
merged 4 commits into from
Oct 15, 2020

Conversation

drodriguezhdez
Copy link
Contributor

This PR adds an accessor to the span.metrics through the MutableSpan interface.

@drodriguezhdez drodriguezhdez requested a review from a team as a code owner October 14, 2020 11:56
@drodriguezhdez drodriguezhdez self-assigned this Oct 14, 2020
@drodriguezhdez drodriguezhdez changed the title Add accessor to span.metrics from MutableSpan Add setters to span.metrics from MutableSpan Oct 15, 2020
@@ -201,6 +201,21 @@ public MutableSpan setTag(final String tag, final Number value) {
return delegate.setTag(tag, value);
}

@Override
public MutableSpan setMetric(final String metric, final int value) {
Copy link
Member

Choose a reason for hiding this comment

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

Could we make that CharSequence - you still get to use String but we could use UTF8BytesString internally

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed 👍

Copy link
Member

@richardstartin richardstartin left a comment

Choose a reason for hiding this comment

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

👍

@drodriguezhdez drodriguezhdez merged commit ff9a4d4 into master Oct 15, 2020
@drodriguezhdez drodriguezhdez deleted the drodriguezhdez/metrics_mutable_span branch October 15, 2020 15:00
@github-actions github-actions bot added this to the 0.66.0 milestone Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants