New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs-metrics] Show AddView API using delegate #5557
Comments
hey @CodeBlanch! |
Let's add a section in here: https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/metrics/customizing-the-sdk/README.md Something at the bottom. Like "Advanced scenarios" maybe? Advanced scenariosView configuration using delegateThe following code snippet shows how to Caution It is not recommended to use the delegate overload of the [Content goes here] For the content you could start by just restoring what we removed: https://github.com/open-telemetry/opentelemetry-dotnet/pull/5554/files#diff-425a8f436c341c05d10b76aac12d1295330116295a3556990ddf3d2bdaffdaecL43-L53 |
See: #5554 (comment)
We should have some sort of advanced documentation which shows the AddView API which exposes a callback/delegate. The important part is strong wording that it isn't recommended to be used due to failures being swallowed at runtime and only written to self-diagnostic logging.
The text was updated successfully, but these errors were encountered: