Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support metric namespace #2447

Merged
merged 7 commits into from
Aug 18, 2022
Merged

Support metric namespace #2447

merged 7 commits into from
Aug 18, 2022

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 marked this pull request as ready for review August 17, 2022 20:25
@@ -300,7 +341,7 @@ void trackDependency(
@Nullable Date timestamp,
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

@@ -58,20 +59,16 @@ public void trackEvent(
@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
2 participants