Skip to content

Conversation

jGleitz
Copy link
Contributor

@jGleitz jGleitz commented Sep 14, 2021

closes #244

… and also refactor the metric code a bit.

/**
* Prefer overriding {@link #getTags(Object, MethodDescriptor, Attributes, Tags)}.
*/
@Deprecated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea behind marking this @Deprecated is that it’s easier if clients all use the same method. This method could then be removed in the next major release.

On the other hand, it’s also not much effort to keep supporting this method, so we can also remove @Deprecated.

private final Collection<GRpcMetricsTagsContributor> tagsContributors;
@Getter
private Tags additionalTags = Tags.empty();
private volatile boolean closed = false;
Copy link
Contributor Author

@jGleitz jGleitz Sep 14, 2021

Choose a reason for hiding this comment

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

volatile is sufficient here, since there will be no parallel access.

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #245 (3963d9f) into master (4b458cb) will decrease coverage by 0.15%.
The diff coverage is 87.75%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #245      +/-   ##
============================================
- Coverage     90.64%   90.49%   -0.16%     
- Complexity      214      219       +5     
============================================
  Files            38       38              
  Lines           930      957      +27     
  Branches         40       44       +4     
============================================
+ Hits            843      866      +23     
- Misses           68       69       +1     
- Partials         19       22       +3     
Impacted Files Coverage Δ
...etrics/RequestAwareGRpcMetricsTagsContributor.java 73.68% <80.00%> (-6.32%) ⬇️
...onfigure/metrics/GRpcMetricsAutoConfiguration.java 91.66% <91.17%> (+1.52%) ⬆️

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 4b458cb...3963d9f. Read the comment docs.

@jvmlet jvmlet merged commit 3dbef9c into LogNet:master Sep 20, 2021
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.

Support RequestAwareGRpcMetricsTagsContributor for Multiary Calls
2 participants