open-telemetry/opentelemetry-dotnet

Configurable Error Handler

Open

#4159 aperta il 7 feb 2023

Vedi su GitHub
 (2 commenti) (2 reazioni) (0 assegnatari)C# (889 fork)auto 404
enhancementhelp wantedkeep-open

Metriche repository

Star
 (3725 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Feature Request

from https://github.com/open-telemetry/opentelemetry-specification/blob/dd47c009da1de335c540decc5d5930e46ea61916/specification/error-handling.md?plain=1#L37-L43

SDK implementations MUST allow end users to change the library's default error handling behavior for relevant errors.
Application developers may want to run with strict error handling in a staging environment to catch invalid uses of the API, or malformed config.
Note that configuring a custom error handler in this way is the only exception to the basic error handling principles outlined above.
The mechanism by which end users set or register a custom error handler should follow language-specific conventions.

Additional Context

Found while working on https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/2009

Guida contributor