Testing MXMetricPayload with custom signposts

I'm adding a few custom signposts with mxSignpost(.begin,...) and mxSignpost(.end,...). Is there a way to force delivery of the MXMetricPayload so I don't need to wait for the daily aggregation to be pushed?

Good things come to those who wait. I don't get as many signpost metrics as I would expect. To understand your ask better, are you wanting the signpost interval data, or just the fact that the signpost event start and stop happened with basic things like timestamps? If the later, I'd just make an extension or a macro to emit the signpost + a structured log statement via SwiftLog.Logger or os.Logger APIs. Best of both worlds. If you're trying to get men stats and other data in the interval data, I'd start looking at Instruments as your go-to tool.

If you want to see that the system is capturing your signposts via MetricKit API, fire up Instruments and watch for them.

That having been said, I made a new feedback because I would find this useful too in a certain context.

FB21900624 - MetricKit: Update Xcode to include a mode to generate a metric payload with user contributed data - aka signpost metrics

The ask in my feedback is user / developer generated data only, which is currently limited to signposts, and potentially extended launch metrics since technically the developer opts into that one too. This is important because I would rather have just my data, than nothing at all due to all of the other system components that would be required generate a full payload.

Testing MXMetricPayload with custom signposts
 
 
Q