Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Aug 15, 2022

Currently built on top of #2446, will rebase once that is merged.

Resolves #2088
Resolves #1099

@trask trask force-pushed the support-metric-namespace branch 2 times, most recently from 95c3bae to 39dd837 Compare August 16, 2022 03:23
@trask trask force-pushed the support-metric-namespace branch from 39dd837 to a2fc8e6 Compare August 17, 2022 20:25
@trask trask marked this pull request as ready for review August 17, 2022 20:25
String name,
String id,
String resultCode,
String duration,
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't seem right. i think you intended to rename Long totalMillis to Long duraiton (line 345)?

Copy link
Member Author

Choose a reason for hiding this comment

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

ooops!! indeed that is what I meant to do

@Nullable Map<String, String> properties,
@Nullable Map<String, Double> metrics) {

if (isDisabled()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

it seems isDisabled() check is removed everywhere. Should we remove that boolean method too? It's only used in this class.

Copy link
Member Author

Choose a reason for hiding this comment

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

it was kind of needed, because we used it in the bytecode instrumentation, but I agree that it's confusing, so I removed it, and if we need that feature in the future (to disable 2.x telemetry), it should be a json configuration option anyways

@trask trask merged commit a3b035d into main Aug 18, 2022
@trask trask deleted the support-metric-namespace branch August 18, 2022 20:31
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.

Allow passing a namespace with a custom metric Add TrackAvailability method

3 participants