OpenTelemetry.Instrumentation.Http
HttpClient instrumentation.
Initializes a new instance of the class.
Configuration options for HTTP client instrumentation.
HttpClient instrumentation.
Initializes a new instance of the class.
Options for HttpClient instrumentation.
Initializes a new instance of the class.
Gets or sets a filter function that determines whether or not to
collect telemetry on a per request basis.
FilterHttpRequestMessage is only executed on .NET and .NET
Core runtimes. and on .NET and .NET Core are both implemented
using .
Notes:
- The return value for the filter function is interpreted as:
- If filter returns , the request is
collected.
- If filter returns or throws an
exception the request is NOT collected.
Gets or sets an action to enrich an with .
EnrichWithHttpRequestMessage is only executed on .NET and .NET
Core runtimes. and on .NET and .NET Core are both implemented
using .
Gets or sets an action to enrich an with .
EnrichWithHttpResponseMessage is only executed on .NET and .NET
Core runtimes. and on .NET and .NET Core are both implemented
using .
Gets or sets an action to enrich an with .
EnrichWithException is called for all runtimes.
Gets or sets a filter function that determines whether or not to
collect telemetry on a per request basis.
FilterHttpWebRequest is only executed on .NET Framework
runtimes. and
on .NET Framework are both implemented using .
Notes:
- The return value for the filter function is interpreted as:
- If filter returns , the request is
collected.
- If filter returns or throws an
exception the request is NOT collected.
Gets or sets an action to enrich an with .
EnrichWithHttpWebRequest is only executed on .NET Framework
runtimes. and
on .NET Framework are both implemented using .
Gets or sets an action to enrich an with .
EnrichWithHttpWebResponse is only executed on .NET Framework
runtimes. and
on .NET Framework are both implemented using .
Gets or sets a value indicating whether exception will be recorded
as an or not. Default value: .
RecordException is supported on all runtimes.
For specification details see: .
Gets or sets a value indicating whether the url query value should be redacted or not.
The query parameter values are redacted with value set as Redacted.
e.g. `?key1=value1` is set as `?key1=Redacted`.
The redaction can be disabled by setting this property to .
EventSource events emitted from the project.
A collection of helper methods to be used when building Http activities.
Gets the OpenTelemetry standard uri tag value for a span based on its request .
.
Indicates whether query parameter should be redacted or not.
Span uri value.
ListenerHandler base class.
Initializes a new instance of the class.
The name of the .
Gets the name of the .
Gets a value indicating whether the supports NULL .
Method called for an event which does not have 'Start', 'Stop' or 'Exception' as suffix.
Custom name.
An object that represent the value being passed as a payload for the event.
PropertyFetcher fetches a property from an object.
The type of the property being fetched.
Initializes a new instance of the class.
Property name to fetch.
Fetch the property from the object.
Object to be fetched.
Fetched value.
Try to fetch the property from the object.
Object to be fetched.
Fetched value.
if the property was fetched.
Extension methods to simplify registering of HttpClient instrumentation.
Enables HttpClient instrumentation.
being configured.
The instance of to chain the calls.
Extension methods to simplify registering of HttpClient instrumentation.
Enables HttpClient instrumentation.
being configured.
The instance of to chain the calls.
Enables HttpClient instrumentation.
being configured.
Callback action for configuring .
The instance of to chain the calls.
Enables HttpClient instrumentation.
being configured.
Name which is used when retrieving options.
Callback action for configuring .
The instance of to chain the calls.
Constants for semantic attribute names outlined by the OpenTelemetry specifications.
.
A collection of helper methods to be used when building spans.
Helper method that populates Activity Status from http status code according
to https://github.com/open-telemetry/semantic-conventions/blob/v1.24.0/docs/http/http-spans.md#status.
The span kind.
Http status code.
Resolved span for the Http status code.
Returns a culture-independent string representation of the given object,
appropriate for diagnostics tracing.
Exception to convert to string.
Exception as string with no culture.
Methods for guarding against exception throwing values.
Throw an exception if the value is null.
The value to check.
The parameter name to use in the thrown exception.
Throw an exception if the value is null or empty.
The value to check.
The parameter name to use in the thrown exception.
Throw an exception if the value is null or whitespace.
The value to check.
The parameter name to use in the thrown exception.
Throw an exception if the value is zero.
The value to check.
The message to use in the thrown exception.
The parameter name to use in the thrown exception.
Throw an exception if the value is not considered a valid timeout.
The value to check.
The parameter name to use in the thrown exception.
Throw an exception if the value is not within the given range.
The value to check.
The parameter name to use in the thrown exception.
The inclusive lower bound.
The inclusive upper bound.
The name of the lower bound.
The name of the upper bound.
An optional custom message to use in the thrown exception.
Throw an exception if the value is not within the given range.
The value to check.
The parameter name to use in the thrown exception.
The inclusive lower bound.
The inclusive upper bound.
The name of the lower bound.
The name of the upper bound.
An optional custom message to use in the thrown exception.
Throw an exception if the value is not of the expected type.
The value to check.
The parameter name to use in the thrown exception.
The type attempted to convert to.
The value casted to the specified type.
An environment variable based .
Initializes a new instance.
Initializes a new instance with the specified prefix.
A prefix used to filter the environment variables.
Loads the environment variables.
Generates a string representing this provider name and relevant details.
The configuration name.
Represents environment variables as an .
A prefix used to filter environment variables.
Builds the for this source.
The .
A
Extension methods for registering with .
Adds an that reads configuration values from environment variables.
The to add to.
The .
Adds an that reads configuration values from environment variables
with a specified prefix.
The to add to.
The prefix that environment variable names must start with. The prefix will be removed from the environment variable names.
The .
Adds an that reads configuration values from environment variables.
The to add to.
Configures the source.
The .
Implementation of .
The type of options being requested.
Initializes a new instance with the specified options configurations.
Factory delegate used to create instances.
.
The configuration actions to run.
The initialization actions to run.
The validations to run.
Returns a configured instance with the given .
The name of the instance to create.
The created instance with the given .
One or more return failed when validating the instance been created.
The does not have a public parameterless constructor or is .
Allows capturing of the expressions passed to a method.
Specifies that an output is not even if
the corresponding type allows it. Specifies that an input argument was
not when the call returns.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Initializes the attribute with a field or property member.
The field or property member that is promised to be not-null.
Initializes the attribute with the list of field and property members.
The list of field and property members that are promised to be not-null.
Gets field or property member names.