#(Swift) Sentry.metrics not concurrency safe
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
I'm trying to use Sentry.metrics.distribute in an async function and I'm getting this error
Reference to class property 'metrics' is not concurrency-safe because it involves shared mutable state
Is this expected? How am I supposed to send metrics to Sentry from an async function?
(Swift) Sentry.metrics not concurrency safe
For now I've marked it as preconcurrency but I'd love a long term solution here.