Provide some guidelines for observable instruments.
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 370
Description
### Type of issue
Missing information
### Description
[Enter feedback here]
Hi, as far as I understand the callbacks for observable instruments run concurrently with the code which updates the metrics.
Should I account for it and use synchronization prmitives like `Interlocked.Read(ref _consecutiveExceptionsCount))` to return a value for the measurement?
### Page URL
https://learn.microsoft.com/en-us/dotnet/core/diagnostics/metrics-instrumentation
### Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/diagnostics/metrics-instrumentation.md
### Document Version Independent Id
02ec1bf2-d0fe-dac5-b2c1-45d607430b06
### Article author
@tommcdon
### Metadata
* ID: 61024acd-c2e8-291a-3007-7f09a1857690
* Service: **dotnet-fundamentals**
Contributor guide
Assessment
This issue has not been assessed yet.