Extensions on top of the OpenTracing APIs, following the OpenTracing Semantic Conventions spec.
After importing the library, see intellisense on
SetXYZTags extensions that use the
KnownTagNames but strongly-typed. E.g.
SetHttpTags(new Http(method: "Post", url: "example.com", statusCode: "500"))
LogXYZ extensions that use
KnownLogFieldValues where applicable). E.g.
LogError(exception) which sets the
error.object logs as the Conventions specify.
LogMessageuses a 'message.format' and 'message.0' keys that are not present in the Conventions yet. https://github.com/opentracing/specification/issues/134 will track
ScopeExtensions.ExecuteInScopeAsynccontains code that needs to move out of this library. It's not about the Conventions themselves, and yet proves useful for ensuring errors are logged appropriately even on Exceptions. It will integrate/move into https://github.com/ndrwrbgs/OpenTracing-Extensions