Add Custom Measurements API - #2013
Conversation
|
@mattjohnsonpint a small note: If no One should be able to |
|
@marandaneto - Within the SDK, |
|
I added some more tests to demonstrate / ensure that. Thanks! |
Actually |
|
Interesting... I read it differently I guess. I will double check. Thanks for highlighting that! 👍 |
|
Hmmm... I'm not so sure. In https://getsentry.github.io/relay/relay_metrics/enum.MetricUnit.html#variant.None
But in https://develop.sentry.dev/sdk/event-payloads/transaction/
Both docs are describing Relay, so one of them must be in error. 🤔 |
|
Looking at the Relay source code, it appears either Thus, I conclude all of these would be identical: {"value":"123"}
{"value":"123","unit":""}
{"value":"123","unit":"none"}(For the .NET SDK, I always use the first one.) |
Yep, but that's what I got from the Ingest folks, Relay is a good citizen and accepts everything but the SDK is; Prefer |
|
So I think the differences boil down to:
I still don't understand why it would matter though. Given two ways to serialize the data where one is 14 chars longer and they both have the same effect, I prefer the shorter form. |
|
|
@marandaneto - I updated as you advised, to align with the behavior of the other SDKs.
Thanks for your help! 😃 |
Adds support for Custom Performance Metrics
https://docs.sentry.io/product/performance/metrics/#custom-performance-metrics
Usage:
In Sentry, they will show up under
Performance > Transaction Summary > Event Detailslike this:Resolves #1951