Comments (4)
https://develop.sentry.dev/delightful-developer-metrics/sending-metrics-sdk/#units-support
for example: 'byte'
I added a custom one and assumed "bytes" and sentry doesn't format that nicely.
I think this is a server side thing. When we transmit the unit to Sentry, the unit is simply transmitted as a string in the statsd protocol:
Since we're leveraging MeasurementUnit under the hood for the .NET SDK metrics implementation, that means it's this:
If we had other enum values, all that would do is give us an indirect way of passing a different string to statsd - but you can do that already with a custom metric.
I suspect in your case it was because you used bytes
rather than byte
.
from sentry-dotnet.
Might be worth adding those to MeasurementUnit as well though, to avoid typos like this.
from sentry-dotnet.
Unless I've misunderstood, it looks like MeasurementUnit already supports all of these:
@bruno-garcia in the code where you were having problems, were you using a custom MeasurementUnit
or did you use MeasurementUnit.Information.Byte
?
from sentry-dotnet.
Looks like this is covered by MeasureUnit.Information.Byte
and Sentry accepts both.
On Sentry:
MeasurementUnit.Custom("bytes")
from sentry-dotnet.
Related Issues (20)
- Make span eligible for `Requests` HOT 2
- install instructions for profiling have the wrong version HOT 4
- Sentry dotnet SDK is blowing away User.IpAddress if we set it explicitly and SendDefaultPii is true HOT 4
- Mobile: User.Other is included in managed errors but not native ones HOT 2
- No debug logs on MAUI when launching within Visual Studio HOT 3
- Support `UWP` via package
- Missing AddAttachment from memory in SentryHint HOT 1
- De-obfuscate stack traces with Babel Obfuscator HOT 1
- [MAUI] Make it possible to programmatically decide whether to attach a screenshot or not HOT 2
- Profiling: Error out in the editor if added to unsuported platform HOT 3
- Add SentrySdk.RunAsyncVoid helper method to Sentry SDK
- Memory Profiling HOT 1
- Unable to cast object of type 'Sentry.Log4Net.SentryAppender' to type 'log4net.Appender.IAppender' HOT 4
- OOTB metrics HOT 1
- Could not get pinvoke, or callbacks for method 'Sentry.Native.C::sentry_options_set_logger' HOT 2
- Document requirement for active scope transaction
- Url parameter secrets are not sanitized by default in ASP.NET HOT 6
- Windows Service memory grows indefinitely with Tracing and Profiling enabled. HOT 5
- Improve Sentry CLI utilization HOT 1
- Deprecate `EnableTracing`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-dotnet.