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

Gauges not reporting custom metrics #3479

Closed
patrickklaeren opened this issue Jul 12, 2024 · 7 comments
Closed

Gauges not reporting custom metrics #3479

patrickklaeren opened this issue Jul 12, 2024 · 7 comments

Comments

@patrickklaeren
Copy link

Package

Sentry

.NET Flavor

.NET

.NET Version

8.0.0

OS

Windows

SDK Version

4.9.0

Self-Hosted Sentry Version

24.6.0

Steps to Reproduce

  1. Clone this repository
  2. Configure and Run the console metrics sample @ https://github.com/getsentry/sentry-dotnet/blob/main/samples/Sentry.Samples.Console.Metrics/Program.cs
  3. Wait for metrics to report to Sentry

Expected Result

All custom metrics reported.

Actual Result

All metrics EXCEPT gauges are reported.

@bitsandfoxes
Copy link
Contributor

Hey @patrickklaeren, thanks for reaching out!
I really don't like saying it but "it works on my machine". I'm running our samples and I do see the guesses:

SentrySdk.Metrics.Gauge("guesses", guess);

Screenshot 2024-07-15 at 19 25 03

@bitsandfoxes
Copy link
Contributor

Looking at it now, the min, max and sum does not seem right tho.

@patrickklaeren
Copy link
Author

Looking at it now, the min, max and sum does not seem right tho.

Is this on a self hosted or SaaS instance?

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jul 15, 2024
@bitsandfoxes
Copy link
Contributor

Is this on a self hosted or SaaS instance?

That's the SaaS instance.

@patrickklaeren
Copy link
Author

Yeah this just isn't coming through on my self hosted instance. I don't know why. The debug output shows it picking up the metric and then it seems to blackhole.

Everything else is sending over.

I will wait for a new version of self hosted to land for now.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jul 15, 2024
@patrickklaeren
Copy link
Author

Ok looks like this might be related to getsentry/self-hosted#3177 if I understand correctly?

@bitsandfoxes
Copy link
Contributor

Ok looks like this might be related to getsentry/self-hosted#3177 if I understand correctly?

I'd agree. This does not seem to be an SDK-specific issue. I'm closing this issue in favor of the already ongoing PR but please feel free to reopen in any case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Archived in project
Development

No branches or pull requests

2 participants