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

Add kwargs to derived gauge - #1135

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

lzchen merged 2 commits into
census-instrumentation:masterfrom
lzchen:gauge

Conversation

@lzchen

@lzchen lzchen commented Jun 29, 2022

Copy link
Copy Markdown
Contributor

No description provided.

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

@aabmass aabmass left a comment

Copy link
Copy Markdown
Member

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

lzchen commented Jun 30, 2022

Copy link
Copy Markdown
Contributor Author

@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.

@aabmass aabmass left a comment

Copy link
Copy Markdown
Member

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