Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Comments

Add kwargs to derived gauge#1135

Merged
lzchen merged 2 commits intocensus-instrumentation:masterfrom
lzchen:gauge
Jun 30, 2022
Merged

Add kwargs to derived gauge#1135
lzchen merged 2 commits intocensus-instrumentation:masterfrom
lzchen:gauge

Conversation

@lzchen
Copy link
Contributor

@lzchen lzchen commented Jun 29, 2022

No description provided.

@lzchen lzchen requested review from a team, aabmass, hectorhdzg and songy23 as code owners June 29, 2022 23:42
Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

What does this PR do? I'm not very familiar with this code. It looks like it's unconditionally adding kwargs as labels for the DerivedGauge?

@lzchen
Copy link
Contributor Author

lzchen commented Jun 30, 2022

@aabmass
DerivedGauges generates point value based off of a passed in function. The current design only accepts a function with no args. This PR adds the option to pass in kwargs to the DerivedGauge to execute the function with parameters.

Copy link
Member

@aabmass aabmass left a comment

Choose a reason for hiding this comment

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

Got it, LGTM.

@lzchen lzchen merged commit 8e30d7d into census-instrumentation:master Jun 30, 2022
@lzchen lzchen deleted the gauge branch June 30, 2022 17:37
inirudebwoy pushed a commit to inirudebwoy/opencensus-python that referenced this pull request Jan 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants