Skip to content

Conversation

@sakshi4016
Copy link

@sakshi4016 sakshi4016 commented Jun 25, 2025

  • Description and context for reviewers: one partner, one stranger
    This PR introduces a Metric Tag Decorator interface that allows service owners to add custom tags to the inbound and outbound metrics emitted by YARPC-Go.
    The main motivation for this change is to support adding a custom tenancy tag to YARPC metrics.
    To prevent high cardinality issues, this tag is opt-in. By default, the tenancy tag is set to dropped, but service owners can override it by providing implementation of the TenancyTagDecorator interface.

  • Docs (package doc)
    ERD : https://docs.google.com/document/d/1ceTSRSYCaRO5yDXQ6FFgyfloxrIHWrD6_CXVWdi00VU/edit?usp=sharing

RELEASE NOTES:
Implementing MetricsTagsDecorator which would allows teams to add custom tags to Yarpc inbound / outbound metrics

@CLAassistant
Copy link

CLAassistant commented Jun 25, 2025

CLA assistant check
All committers have signed the CLA.

oneporter
oneporter previously approved these changes Jul 3, 2025
oneporter
oneporter previously approved these changes Jul 4, 2025
oneporter
oneporter previously approved these changes Jul 7, 2025
@sakshi4016 sakshi4016 force-pushed the sg-custom-tenancy branch 3 times, most recently from 32d7848 to f2e0b69 Compare July 9, 2025 10:47
@sakshi4016 sakshi4016 force-pushed the sg-custom-tenancy branch 2 times, most recently from 7912930 to cef5207 Compare July 31, 2025 15:05
@sakshi4016 sakshi4016 force-pushed the sg-custom-tenancy branch 2 times, most recently from 3324616 to c3a78f8 Compare August 25, 2025 14:49
@sakshi4016 sakshi4016 force-pushed the sg-custom-tenancy branch 3 times, most recently from ff06f46 to 87f7a58 Compare September 2, 2025 14:36
Update

Comment address

address comment

resolve lint error

update copyright

changing interface location

gRPC reflection server (yarpc#2371)

* gRPC reflection server

* license header

* add README.md for gRPC reflection

* updated .codecov.yml

[Yarpc-Go] Implement Metrics Tag Decorator

Update

Comment address

address comment

resolve lint error

update copyright

changing interface location

gRPC reflection server (yarpc#2371)

* gRPC reflection server

* license header

* add README.md for gRPC reflection

* updated .codecov.yml

nit

Revert "gRPC reflection server (yarpc#2371)"

This reverts commit 056f218.

nit

limiting logging per edge

limiting logging per edge

nits

decoratortags as pointer

adding sampledLogger + modifying interface

remove ctx

remove ctx

adding decorator call options

using context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants