System.Diagnostics.DiagnosticSource Represents an operation with context to be used for logging. Occurs when the value changes. Initializes a new instance of the class. The name of the operation. Updates the to have a new baggage item with the specified key and value. The baggage key. The baggage value. for convenient chaining. Adds the specified activity event to the events list. The activity event to add. for convenient chaining. Updates the activity to have a tag with an additional and . The tag key name. The tag value mapped to the input key. for convenient chaining. Updates the to have a new tag with the provided and . The tag key. The tag value. for convenient chaining. Stops the activity if it is already started and notifies any event listeners. Nothing will happen otherwise. When overriden by a derived type, this method releases any allocated resources. if the method is being called from the finalizer; if calling from user code. Enumerates the objects attached to this Activity object. . Enumerates the objects attached to this Activity object. . Enumerates the tags attached to this Activity object. . Returns the value of a key-value pair added to the activity with . The baggage key. The value of the key-value-pair item if it exists, or if it does not exist. Returns the object mapped to the specified property name. The name associated to the object. The object mapped to the property name, if one is found; otherwise, . Returns the value of the Activity tag mapped to the input key/>. Returns if that key does not exist. The tag key string. The tag value mapped to the input key. Add or update the Activity baggage with the input key and value. If the input value is - if the collection has any baggage with the same key, then this baggage will get removed from the collection. - otherwise, nothing will happen and the collection will not change. If the input value is not - if the collection has any baggage with the same key, then the value mapped to this key will get updated with the new input value. - otherwise, the key and value will get added as a new baggage to the collection. Baggage item will be updated/removed only if it was originaly added to the current activity. Items inherited from the parents will not be changed/removed, new item would be added to current activity baggage instead. The baggage key name The baggage value mapped to the input key for convenient chaining. Attaches any custom object to this activity. If the specified was previously associated with another object, the property will be updated to be associated with the new instead. It is recommended to use a unique property name to avoid conflicts with anyone using the same value. The name to associate the value with. The object to attach and map to the property name. Updates the to set its as the difference between and the specified stop time. The UTC stop time. for convenient chaining. Sets the ID format on this before it is started. One of the enumeration values that specifies the format of the property. for convenient chaining. Sets the parent ID using the W3C convention of a TraceId and a SpanId. The parent activity's TraceId. The parent activity's SpanId. One of the enumeration values that specifies flags defined by the W3C standard that are associated with an activity. for convenient chaining. Updates this to indicate that the with an ID of caused this . The ID of the parent operation. for convenient chaining. Sets the start time of this . The start time in UTC. for convenient chaining. Sets the status code and description on the current activity object. The status code The error status description for convenient chaining. Adds or update the activity tag with the input key and value. The tag key name. The tag value mapped to the input key. for convenient chaining. Starts the activity. for convenient chaining. Stops the activity. Gets or sets the flags (defined by the W3C ID specification) associated with the activity. the flags associated with the activity. Gets a collection of key/value pairs that represents information that is passed to children of this . Information that's passed to children of this . Gets the context of the activity. Context becomes valid only if the activity has been started. The context of the activity, if the activity has been started; otherwise, returns the default context. Gets or sets the current operation () for the current thread. This flows across async calls. The current operation for the current thread. Gets or sets the default ID format for the . Gets or sets the display name of the activity. A string that represents the activity display name. Gets the duration of the operation. The delta between and the end time if the has ended ( or was called), or if the has not ended and was not called. Gets the list of all the activity events attached to this activity. An enumeration of activity events attached to this activity. If the activity has no events, returns an empty enumeration. Gets or sets a value that detrmines if the is always used to define the default ID format. to always use the ; otherwise, . Gets a value that indicates whether the parent context was created from remote propagation. Gets an identifier that is specific to a particular request. The activity ID. Gets the format for the . The format for the . Gets or sets a value that indicates whether this activity should be populated with all the propagation information, as well as all the other properties, such as links, tags, and events. if the activity should be populated; otherwise. Gets a value that indicates whether this object is stopped or not. Gets the relationship between the activity, its parents, and its children in a trace. One of the enumeration values that indicate relationship between the activity, its parents, and its children in a trace. Gets the list of all the activity links attached to this activity. An enumeration of activity links attached to this activity. If the activity has no links, returns an empty enumeration. Gets the operation name. The name of the operation. Gets the parent that created this activity. The parent of this , if it is from the same process, or if this instance has no parent (it is a root activity) or if the parent is from outside the process. Gets the ID of this activity's parent. The parent ID, if one exists, or if it does not. Gets the parent's . The parent's . Gets a value that indicates whether the W3CIdFlags.Recorded flag is set. if the W3CIdFlags.Recorded flag is set; otherwise, . Gets the root ID of this . The root ID, or if the current instance has either a or an . Gets the activity source associated with this activity. Gets the SPAN part of the . The ID for the SPAN part of , if the has the W3C format; otherwise, a zero . Gets the time when the operation started. The UTC time that the operation started. Gets status code of the current activity object. Gets the status description of the current activity object. Gets the list of tags that represent information to log along with the activity. This information is not passed on to the children of this activity. A key-value pair enumeration of tags and objects. Gets a collection of key/value pairs that represent information that will be logged along with the to the logging system. Information that will be logged along with the to the logging system. Gets the TraceId part of the . The ID for the TraceId part of the , if the ID has the W3C format; otherwise, a zero TraceId. When starting an Activity which does not have a parent context, the Trace Id will automatically be generated using random numbers. TraceIdGenerator can be used to override the runtime's default Trace Id generation algorithm. Gets or sets the W3C header. The W3C header. Enumerates the data stored on an object. Type being enumerated. Returns an enumerator that iterates through the data stored on an Activity object. . Advances the enumerator to the next element of the data. if the enumerator was successfully advanced to the next element; if the enumerator has passed the end of the collection. Gets the element at the current position of the enumerator. Provides data for the event. Gets the object after the event. Gets the object before the event. A representation that conforms to the W3C TraceContext specification. It contains two identifiers: a TraceId and a SpanId, along with a set of common TraceFlags and system-specific TraceState values. Construct a new activity context instance using the specified arguments. A trace identifier. A span identifier. Contain details about the trace. Carries system-specific configuration data. Indicates if the context is propagated from a remote parent. Indicates whether the current object is equal to another object of the same type. The object to compare to this instance. if the current object is equal to the parameter; otherwise, . Determines whether this instance and a specified object have the same value. The object to compare to this instance. if the current object is equal to the parameter; otherwise, . Provides a hash function for the current that's suitable for hashing algorithms and data structures, such as hash tables. A hash code for the current . Determines whether two specified values are equal. The first value to compare. The second value to compare. if and are equal; otherwise, . Determines whether two specified values are not equal. The first value to compare. The second value to compare. if and are not equal; otherwise, . Parses a W3C trace context headers to an object. The W3C trace parent header. The trace state. The trace parent is invalid. The object created from the parsing operation. Tries to parse the W3C trace context headers to the object. The W3C trace parent header. The W3C trace state. to propagate the context from the remote parent; otherwise, . When this method returns, contains the object created from the parsing operation. if the operation succeeds; otherwise. Tries to parse the W3C trace context headers to an object. The W3C trace parent header. The W3C trace state. When this method returns , the object created from the parsing operation. if the parsing was successful; otherwise. Indicates if the activity context was propagated from a remote parent. if it was propagated from a remote parent; otherwise. The Id of the request as known by the caller. The Span Id in the context. The flags defined by the W3C standard along with the ID for the activity. The context tracing flags. The trace identifier. The tracing identifier in the context. Holds the W3C 'tracestate' header. A string representing the W3C 'tracestate' header. Encapsulates all the information that is sent to the activity listener, to make decisions about the creation of the activity instance, as well as its state. The possible generic type parameters are or . The type of the property. Should be either or . Gets the activity kind which the activity will be created with. One of the enumeration values that represent an activity kind. Gets the enumeration of activity links that the activity will be created with. An enumeration of activity links. Gets the name to use as OperationName of the activity that will get created. A string representing the activity name. Gets the parent context or parent Id that the activity will get created with. The parent of the activity, represented either as a or as an . Gets the collection that is used to add more tags during the sampling process. The added tags are also added to the created Activity if it is decided that it should be created by the callbacks. The Activity tags collection. Gets the activity source that creates the activity. An activity source object. Gets the tags that the activity will be created with. A key-value pair enumeration of tags associated with the activity. Gets the trace Id to use in the Activity object if it is decided that it should be created by callbacks. The trace Id. Gets or initializes the trace state to use when creating the Activity. Represents an event containing a name and a timestamp, as well as an optional list of tags. Initializes a new activity event instance using the specified name and the current time as the event timestamp. The event name. Initializes a new activity event instance using the specified name, timestamp and tags. The event name. The event timestamp. Timestamp must only be used for the events that happened in the past, not at the moment of this call. The event tags. Enumerate the tags attached to this object. . Gets the activity event name. A string representing the activity event name. Gets the collection of tags associated with the event. A key-value pair enumeration containing the tags associated with the event. Gets the activity event timestamp. A datetime offset representing the activity event timestamp. Specifies the format of the property. The hierarchical format. An unknown format. The W3C format. Describes the relationship between the activity, its parents and its children in a trace. Outgoing request to the external component. Output received from an external component. Internal operation within an application, as opposed to operations with remote parents or children. This is the default value. Output provided to external components. Requests incoming from external component. Activities may be linked to zero or more activity context instances that are causally related. Activity links can point to activity contexts inside a single trace or across different traces. Activity links can be used to represent batched operations where an activity was initiated by multiple initiating activities, each representing a single incoming item being processed in the batch. Constructs a new activity link, which can be linked to an activity. The trace activity context. The key-value pair list of tags associated to the activity context. Enumerate the tags attached to this object. . Indicates whether the current activity link is equal to another activity link. The activity link to compare. if the current activity link is equal to ; otherwise, . Indicates whether the current activity link is equal to another object. The object to compare. if the current activity link is equal to ; otherwise, . Provides a hash function for the current that's suitable for hashing algorithms and data structures, such as hash tables. A hash code for the current . Determines whether two specified values are equal. The first value to compare. The second value to compare. if and are equal; otherwise, . Determines whether two specified values are not equal. The first value to compare. The second value to compare. if and are not equal; otherwise, . Retrieves the activity context inside this activity link. Retrieves the key-value pair enumeration of tags attached to the activity context. An enumeration of tags attached to the activity context. Allows listening to the start and stop activity events and gives the opportunity to decide creating an activity for sampling scenarios. Construct a new activity listener object to start listeneing to the activity events. Unregisters this activity listener object from listening to activity events. Gets or sets the callback used to listen to the activity start event. An activity callback instance used to listen to the activity start event. Gets or sets the callback used to listen to the activity stop event. An activity callback instance used to listen to the activity stop event. Gets or sets the callback that is used to decide if creating objects with a specific data state is allowed. A sample activity instance. Gets or sets the callback that is used to decide if creating objects with a specific data state is allowed. A sample activity instance. Gets or sets the callback that allows deciding if activity object events that were created using the activity source object should be listened or not. to listen events; otherwise. Enumeration values used by to indicate the amount of data to collect for the related . Requesting more data causes a greater performance overhead. The activity object should be populated with all the propagation information and also all other properties such as Links, Tags, and Events. Using this value causes to return . The activity object should be populated the same as the case. Additionally, Activity.Recorded is set to . For activities using the W3C trace ids, this sets a flag bit in the ID that will be propagated downstream requesting that the trace is recorded everywhere. The activity object does not need to be created. The activity object needs to be created. It will have a Name, a Source, an Id and Baggage. Other properties are unnecessary and will be ignored by this listener. Provides APIs to create and start objects and to register objects to listen to the events. Constructs an activity source object with the specified . The name of the activity source object. The version of the component publishing the tracing info. Adds a listener to the activity starting and stopping events. The activity listener object to use for listening to the activity events. Creates a new object if there is any listener to the Activity, returns otherwise. The operation name of the Activity The The created object or if there is no any event listener. Creates a new object if there is any listener to the Activity, returns otherwise. If the Activity object is created, it will not automatically start. Callers will need to call to start it. The operation name of the Activity. The The parent object to initialize the created Activity object with. The optional tags list to initialize the created Activity object with. The optional list to initialize the created Activity object with. The default Id format to use. The created object or if there is no any listener. Creates a new object if there is any listener to the Activity, returns otherwise. The operation name of the Activity. The The parent Id to initialize the created Activity object with. The optional tags list to initialize the created Activity object with. The optional list to initialize the created Activity object with. The default Id format to use. The created object or if there is no any listener. Disposes the activity source object, removes the current instance from the global list, and empties the listeners list. Checks if there are any listeners for this activity source. if there is a listener registered for this activity source; otherwise, . Creates and starts a new object if there is any listener to the Activity events, returns otherwise. The The parent object to initialize the created Activity object with. The optional tags list to initialize the created Activity object with. The optional list to initialize the created Activity object with. The optional start timestamp to set on the created Activity object. The operation name of the Activity. The created object or if there is no any listener. Creates a new activity if there are active listeners for it, using the specified name and activity kind. The operation name of the activity. The activity kind. The created activity object, if it had active listeners, or if it has no event listeners. Creates a new activity if there are active listeners for it, using the specified name, activity kind, parent activity context, tags, optional activity link and optional start time. The operation name of the activity. The activity kind. The parent object to initialize the created activity object with. The optional tags list to initialize the created activity object with. The optional list to initialize the created activity object with. The optional start timestamp to set on the created activity object. The created activity object, if it had active listeners, or if it has no event listeners. Creates a new activity if there are active listeners for it, using the specified name, activity kind, parent Id, tags, optional activity links and optional start time. The operation name of the activity. The activity kind. The parent Id to initialize the created activity object with. The optional tags list to initialize the created activity object with. The optional list to initialize the created activity object with. The optional start timestamp to set on the created activity object. The created activity object, if it had active listeners, or if it has no event listeners. Returns the activity source name. A string that represents the activity source name. Returns the activity source version. A string that represents the activity source version. Represents a formatted based on a W3C standard. Copies the 8 bytes of the current to a specified span. The span to which the 8 bytes of the SpanID are to be copied. Creates a new value from a read-only span of eight bytes. A read-only span of eight bytes. does not contain eight bytes. The new span ID. Creates a new value from a read-only span of 16 hexadecimal characters. A span that contains 16 hexadecimal characters. does not contain 16 hexadecimal characters. -or- The characters in are not all lower-case hexadecimal characters or all zeros. The new span ID. Creates a new value from a read-only span of UTF8-encoded bytes. A read-only span of UTF8-encoded bytes. The new span ID. Creates a new based on a random number (that is very likely to be unique). The new span ID. Determines whether this instance and the specified instance have the same value. The instance to compare. if has the same hex value as the current instance; otherwise, . the current instance and a specified object, which also must be an instance, have the same value. The object to compare. if is an instance of and has the same hex value as the current instance; otherwise, . Returns the hash code of the SpanId. The hash code of the SpanId. Determines whether two specified instances have the same value. The first instance to compare. The second instance to compare. if the SpanId of is the same as the SpanId of ; otherwise, . Determine whether two specified instances have unequal values. The first instance to compare. The second instance to compare. if the SpanId of is different from the SpanId of ; otherwise, . Returns a 16-character hexadecimal string that represents this span ID. The 16-character hexadecimal string representation of this span ID. Returns a 16-character hexadecimal string that represents this span ID. The 16-character hexadecimal string representation of this span ID. Define the status code of the Activity which indicate the status of the instrumented operation. Status code indicating an error is encountered during the operation. Status code indicating the operation has been validated and completed successfully. Unset status code is the default value indicating the status code is not initialized. ActivityTagsCollection is a collection class used to store tracing tags. This collection will be used with classes like and . This collection behaves as follows: - The collection items will be ordered according to how they are added. - Don't allow duplication of items with the same key. - When using the indexer to store an item in the collection: - If the item has a key that previously existed in the collection and the value is , the collection item matching the key will be removed from the collection. - If the item has a key that previously existed in the collection and the value is not , the new item value will replace the old value stored in the collection. - Otherwise, the item will be added to the collection. - Add method will add a new item to the collection if an item doesn't already exist with the same key. Otherwise, it will throw an exception. Create a new instance of the collection. Create a new instance of the collection and store the input list items in the collection. Initial list to store in the collection. Adds an item to the collection. Key and value pair of the tag to add to the collection. already exists in the list. is . Adds a tag with the provided key and value to the collection. This collection doesn't allow adding two tags with the same key. The tag key. The tag value. Removes all items from the collection. Determines whether the contains a specific value. The object to locate in the . if is found in the ; otherwise, . Determines whether the collection contains an element with the specified key. The key to locate in the . if the collection contains tag with that key. otherwise. Copies the elements of the collection to an array, starting at a particular array index. The array that is the destination of the elements copied from collection. The zero-based index in array at which copying begins. Returns an enumerator that iterates through the collection. An enumerator for the . Removes the first occurrence of a specific item from the collection. The tag key value pair to remove. if item was successfully removed from the collection; otherwise, . This method also returns if item is not found in the original collection. Removes the tag with the specified key from the collection. The tag key. if the item existed and removed. otherwise. Returns an enumerator that iterates through the collection. An enumerator that can be used to iterate through the collection. Returns an enumerator that iterates through the collection. An object that can be used to iterate through the collection. Gets the value associated with the specified key. The tag key. The tag value. When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized. Gets the number of elements contained in the collection. The number of elements contained in the . Gets a value indicating whether the collection is read-only. This always returns . Always returns . Gets or sets a specified collection item. When setting a value to this indexer property, the following behavior is observed: - If the key previously existed in the collection and the value is , the collection item matching the key will get removed from the collection. - If the key previously existed in the collection and the value is not , the value will replace the old value stored in the collection. - Otherwise, a new item will get added to the collection. The key of the value to get or set. The object mapped to the key. Get the list of the keys of all stored tags. An containing the keys of the object that implements . Get the list of the values of all stored tags. An containing the values in the object that implements . Enumerates the elements of an . Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Advances the enumerator to the next element of the collection. if the enumerator was successfully advanced to the next element; if the enumerator has passed the end of the collection. Sets the enumerator to its initial position, which is before the first element in the collection. Gets the element in the collection at the current position of the enumerator. The element in the collection at the current position of the enumerator. Gets the element in the collection at the current position of the enumerator. The element in the collection at the current position of the enumerator. Specifies flags defined by the W3C standard that are associated with an activity. The activity has not been marked. The activity (or more likely its parents) has been marked as useful to record. Represents a whose format is based on a W3C standard. Copies the 16 bytes of the current to a specified span. The span to which the 16 bytes of the trace ID are to be copied. Creates a new value from a read-only span of 16 bytes. A read-only span of 16 bytes. does not contain eight bytes. The new trace ID. Creates a new value from a read-only span of 32 hexadecimal characters. A span that contains 32 hexadecimal characters. does not contain 16 hexadecimal characters. -or- The characters in are not all lower-case hexadecimal characters or all zeros. The new trace ID. Creates a new value from a read-only span of UTF8-encoded bytes. A read-only span of UTF8-encoded bytes. The new trace ID. Creates a new based on a random number (that is very likely to be unique). The new . Determines whether the current instance and a specified are equal. The instance to compare. if has the same hex value as the current instance; otherwise, . Determines whether this instance and a specified object, which must also be an instance, have the same value. The object to compare. if is an instance of and has the same hex value as the current instance; otherwise, . Returns the hash code of the TraceId. The hash code of the TraceId. Determines whether two specified instances have the same value. The first instance to compare. The second instance to compare. if the TraceId of is the same as the TraceId of ; otherwise, . Determines whether two specified instances have the same value. The first instance to compare. The second instance to compare. if the TraceId of is different from the TraceId of ; otherwise, . Returns a 32-character hexadecimal string that represents this span ID. The 32-character hexadecimal string representation of this trace ID. Returns a 32-character hexadecimal string that represents this trace ID. The 32-character hexadecimal string representation of this trace ID. Provides an implementation of the abstract class that represents a named place to which a source sends its information (events). Creates a new . The name of this . Disposes the NotificationListeners. Determines whether there are any registered subscribers. if there are any registered subscribers, otherwise. Checks whether the is enabled. The name of the event to check. if notifications are enabled; otherwise, . Checks if any subscriber to the diagnostic events is interested in receiving events with this name. Subscribers indicate their interest using a delegate provided in . The name of the event to check. The object that represents a context. The object that represents a context. if it is enabled, otherwise. Invokes the OnActivityExport method of all the subscribers. The activity affected by an external event. An object that represents the outgoing request. Invokes the OnActivityImport method of all the subscribers. The activity affected by an external event. An object that represents the incoming request. Adds a subscriber. A subscriber. A reference to an interface that allows the listener to stop receiving notifications before the has finished sending them. Adds a subscriber, and optionally filters events based on their name and up to two context objects. A subscriber. A delegate that filters events based on their name and up to two context objects (which can be ), or to if an event filter is not desirable. A reference to an interface that allows the listener to stop receiving notifications before the has finished sending them. Adds a subscriber, optionally filters events based on their name and up to two context objects, and specifies methods to call when providers import or export activites from outside the process. A subscriber. A delegate that filters events based on their name and up to two context objects (which can be ), or if an event filter is not desirable. An action delegate that receives the activity affected by an external event and an object that represents the incoming request. An action delegate that receives the activity affected by an external event and an object that represents the outgoing request. A reference to an interface that allows the listener to stop receiving notifications before the has finished sending them. Adds a subscriber, and optionally filters events based on their name. A subscriber. A delegate that filters events based on their name (). The delegate should return if the event is enabled. A reference to an interface that allows the listener to stop receiving notifications before the has finished sending them. Returns a string with the name of this DiagnosticListener. The name of this DiagnosticListener. Logs a notification. The name of the event to log. An object that represents the payload for the event. Gets the collection of listeners for this . Gets the name of this . The name of the . An abstract class that allows code to be instrumented for production-time logging of rich data payloads for consumption within the process that was instrumented. Initializes an instance of the class. Verifies if the notification event is enabled. The name of the event being written. if the notification event is enabled, otherwise. Verifies it the notification event is enabled. The name of the event being written. An object that represents the additional context for IsEnabled. Consumers should expect to receive which may indicate that producer called pure IsEnabled(string) to check if consumer wants to get notifications for such events at all. Based on that, producer may call IsEnabled(string, object, object) again with non- context. Optional. An object that represents the additional context for IsEnabled. by default. Consumers should expect to receive which may indicate that producer called pure IsEnabled(string) or producer passed all necessary context in . if the notification event is enabled, otherwise. Transfers state from an activity to some event or operation, such as an outgoing HTTP request, that will occur outside the process. The activity affected by an external event. An object that represents the outgoing request. Transfers state to an activity from some event or operation, such as an incoming request, that occurred outside the process. The activity affected by an external event. A payload that represents the incoming request. Starts an and writes a start event. The to be started. An object that represent the value being passed as a payload for the event. The started activity for convenient chaining. Stops the given , maintains the global activity, and notifies consumers that the was stopped. The activity to be stopped. An object that represents the value passed as a payload for the event. Provides a generic way of logging complex payloads. The name of the event being written. An object that represents the value being passed as a payload for the event. This is often an anonymous type which contains several sub-values. An implementation of determines if and how distributed context information is encoded and decoded as it traverses the network. The encoding can be transported over any network protocol that supports string key-value pairs. For example, when using HTTP, each key-value pair is an HTTP header. injects values into and extracts values from carriers as string key-value pairs. Initializes an instance of the class. This constructor is protected and only meant to be called from parent classes. Returns the default propagator object that will be initialized with. An instance of the class. Returns a propagator that does not transmit any distributed context information in outbound network messages. An instance of the class. Returns a propagator that attempts to act transparently, emitting the same data on outbound network requests that was received on the inbound request. When encoding the outbound message, this propagator uses information from the request's root Activity, ignoring any intermediate Activities that may have been created while processing the request. An instance of the class. Extracts the baggage key-value pair list from an incoming request represented by the carrier. For example, from the headers of an HTTP request. The medium from which values will be read. The callback method to invoke to get the propagation baggage list from the carrier. Returns the extracted key-value pair list from the carrier. Extracts the trace ID and trace state from an incoming request represented by the carrier. For example, from the headers of an HTTP request. The medium from which values will be read. The callback method to invoke to get the propagation trace ID and state from the carrier. When this method returns, contains the trace ID extracted from the carrier. When this method returns, contains the trace state extracted from the carrier. Injects the trace values stored in the object into a carrier. For example, into the headers of an HTTP request. The Activity object has the distributed context to inject to the carrier. The medium in which the distributed context will be stored. The callback method to invoke to set a named key-value pair on the carrier. Get or set the process-wide propagator object to use as the current selected propagator. The currently selected process-wide propagator object. Gets the set of field names this propagator is likely to read or write. The list of fields that will be used by the DistributedContextPropagator. Represents the callback method that's used in the extract methods of propagators. The callback is invoked to look up the value of a named field. The medium used by propagators to read values from. The propagation field name. When this method returns, contains the value that corresponds to . The value is non- if there is only one value for the input field name. When this method returns, contains a collection of values that correspond to . The value is non- if there is more than one value for the input field name. Represents the callback method that's used in propagators' inject methods. This callback is invoked to set the value of a named field. Propagators may invoke it multiple times in order to set multiple fields. The medium used by propagators to write values to. The propagation field name. The value corresponding to . Represents an instrument that supports adding non-negative values. For example, you might call counter.Add(1) each time a request is processed to track the total number of requests. Most metric viewers display counters using a rate (requests/sec), by default, but can also display a cumulative total. The type that the counter represents. Records the increment value of the measurement. The increment measurement. Records the increment value of the measurement. The increment measurement. A key-value pair tag associated with the measurement. Records the increment value of the measurement. The increment measurement. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. Records the increment value of the measurement. The increment measurement. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. A third key-value pair tag associated with the measurement. Records the increment value of the measurement. The increment measurement. A list of key-value pair tags associated with the measurement. Adds the increment value of the measurement. The measurement value. The tags associated with the measurement. Records the increment value of the measurement. The increment measurement. A span of key-value pair tags associated with the measurement. Represents a metrics instrument that can be used to report arbitrary values that are likely to be statistically meaningful, for example, the request duration. Call to create a Histogram object. The type that the histogram represents. Records a measurement value. The measurement value. Records a measurement value. The measurement value. A key-value pair tag associated with the measurement. Records a measurement value. The measurement value. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. Records a measurement value. The measurement value. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. A third key-value pair tag associated with the measurement. Records a measurement value. The measurement value. A list of key-value pair tags associated with the measurement. Records a measurement value. The measurement value. The tags associated with the measurement. Records a measurement value. The measurement value. A span of key-value pair tags associated with the measurement. Base class of all metrics instrument classes Protected constructor to initialize the common instrument properties like the meter, name, description, and unit. The meter that created the instrument. The instrument name. Cannot be . Optional instrument unit of measurements. Optional instrument description. Activates the instrument to start recording measurements and to allow listeners to start listening to such measurements. Gets the instrument description. Gets a value that indicates if there are any listeners for this instrument. Gets a value that indicates whether the instrument is an observable instrument. Gets the Meter that created the instrument. Gets the instrument name. Gets the instrument unit of measurements. The base class for all non-observable instruments. The type that the instrument represents. Create the metrics instrument using the properties meter, name, description, and unit. The meter that created the instrument. The instrument name. Cannot be . Optional instrument unit of measurements. Optional instrument description. Records a measurement by notifying all objects that are listening to this instrument. The measurement value. Records a measurement by notifying all objects that are listening to this instrument. The measurement value. A key-value pair tag associated with the measurement. Records a measurement by notifying all objects that are listening to this instrument. The measurement value. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. Records a measurement by notifying all objects that are listening to this instrument. The measurement value. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. A third key-value pair tag associated with the measurement. Records a measurement by notifying all objects that are listening to this instrument. The measurement value. The tags associated with the measurement. Records a measurement by notifying all objects that are listening to this instrument. The measurement value. A span of key-value pair tags associated with the measurement. Stores one observed metrics value and its associated tags. This type is used by an Observable instrument's Observe() method when reporting current measurements. The type that the measurement represents. Initializes a new instance of using the specified value. The measurement value. Initializes a new instance of using the specified value and list of tags. The measurement value. The list of tags associated with the measurement. Initializes a new instance of using the specified value and list of tags. The measurement value. The list of tags associated with the measurement. Initializes a new instance of using the specified value and list of tags. The measurement value. The list of tags associated with the measurement. Gets the measurement tags list. Gets the measurement value. A delegate to represent the Meterlistener callbacks that are used when recording measurements. The instrument that sent the measurement. The measurement value. A span of key-value pair tags associated with the measurement. The state object originally passed to method. The type that the measurement represents. Meter is the class responsible for creating and tracking the Instruments. Initializes a new instance of using the specified meter name. The Meter name. Initializes a new instance of using the specified meter name and version. The Meter name. The optional Meter version. Create a metrics Counter object. The instrument name. Cannot be . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new counter. Creates a Histogram, which is an instrument that can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentiles. The instrument name. Cannot be . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new histogram. Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when ObservableCounter{T}.Observe() is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement.. A new observable counter. Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when ObservableCounter{T}.Observe() is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable counter. Creates an ObservableCounter, which is an instrument that reports monotonically increasing values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when ObservableCounter{T}.Observe() is called by Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable counter. Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when ObservableCounter{T}.Observe() is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable gauge. Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when ObservableCounter{T}.Observe() is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable gauge. Creates an ObservableGauge, which is an asynchronous instrument that reports non-additive values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when ObservableCounter{T}.Observe() is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable gauge. Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when the is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable up down counter. Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when the is called by . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable up down counter. Creates an ObservableUpDownCounter object. ObservableUpDownCounter is an Instrument that reports increasing or decreasing values when the instrument is being observed. The instrument name. Cannot be . The callback to call to get the measurements when the is called by Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new observable up down counter. Create a metrics UpDownCounter object. The instrument name. Cannot be . Optional instrument unit of measurements. Optional instrument description. The numerical type of the measurement. A new up down counter. Dispose the Meter which will disable all instruments created by this meter. Gets the Meter name. The Meter name Gets the Meter version. The Meter version. The MeterListener is class used to listen to the metrics instrument measurements recording. Initializes a new instance of the class. Stops listening to a specific instrument measurement recording. The instrument to stop listening to. The state object originally passed to method. Disposes the listeners which will stop it from listening to any instrument. Starts listening to a specific instrument measurement recording. The instrument to listen to. A state object that will be passed back to the callback getting measurements events. Calls all Observable instruments that the listener is listening to, and calls with every collected measurement. Sets a callback for a specific numeric type to get the measurement recording notification from all instruments which enabled listening and was created with the same specified numeric type. If a measurement of type T is recorded and a callback of type T is registered, that callback will be used. The callback which can be used to get measurement recording of numeric type T. The type of the numeric measurement. Enables the listener to start listening to instruments measurement recording. Gets or sets the callback to get notified when an instrument is published. The callback to get notified when an instrument is published. Gets or sets the callback to get notified when the measurement is stopped on some instrument. This can happen when the Meter or the Listener is disposed or calling on the listener. The callback to get notified when the measurement is stopped on some instrument. Represents a metrics-observable instrument that reports monotonically increasing values when the instrument is being observed, for example, CPU time (for different processes, threads, user mode, or kernel mode). Call to create the observable counter object. The type that the observable counter represents. Represents an observable instrument that reports non-additive values when the instrument is being observed, for example, the current room temperature. Call to create the observable counter object. ObservableInstrument{T} is the base class from which all metrics observable instruments will inherit. The type that the observable instrument represents. Initializes a new instance of the class using the specified meter, name, description, and unit. All classes that extend ObservableInstrument{T} must call this constructor when constructing objects of the extended class. The meter that created the instrument. The instrument name. cannot be . Optional instrument unit of measurements. Optional instrument description. Fetches the current measurements being tracked by this instrument. All classes extending ObservableInstrument{T} need to implement this method. The current measurements tracked by this instrument. Gets a value that indicates if the instrument is an observable instrument. if the instrument is metrics-observable; otherwise. A metrics-observable instrument that reports increasing or decreasing values when the instrument is being observed. Use this instrument to monitor the process heap size or the approximate number of items in a lock-free circular buffer, for example. To create an ObservableUpDownCounter object, use the methods. The type that the counter represents. An instrument that supports reporting positive or negative metric values. UpDownCounter may be used in scenarios like reporting the change in active requests or queue size. The type that the UpDownCounter represents. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. A key-value pair tag associated with the measurement. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. A first key-value pair tag associated with the measurement. A second key-value pair tag associated with the measurement. A third key-value pair tag associated with the measurement. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. A list of key-value pair tags associated with the measurement. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. A of tags associated with the measurement. Records the delta value of the measurement. The delta can be positive, negative, or zero. The amount to be added, which can be positive, negative, or zero. A span of key-value pair tags associated with the measurement. A delegate that defines the signature of the callbacks used in the sampling process. The Activity creation options used by callbacks to decide creating the Activity object or not. The type of the requested parent to create the Activity object with. Should be either a string or an instance. An object containing the sampling results, which indicate the amount of data to collect for the related . Represents a list of tags that can be accessed by index. Provides methods to search, sort, and manipulate lists. Initializes a new instance of using the specified . A span of tags to initialize the list with. Adds a tag to the list. The key-value pair of the tag to add to the list. Adds a tag with the specified and to the list. The tag key. The tag value. Removes all elements from the . Determines whether a tag is in the . The tag to locate in the . if item is found in the ; otherwise, . Copies the entire to a compatible one-dimensional array, starting at the specified index of the target array. The one-dimensional Array that is the destination of the elements copied from . The Array must have zero-based indexing. The zero-based index in at which copying begins. is . is less than 0 or greater than or equal to the length. Copies the contents of this into a destination span. The destination object. The number of elements in the source is greater than the number of elements that the destination span. Returns an enumerator that iterates through the . An enumerator that iterates through the . Searches for the specified tag and returns the zero-based index of the first occurrence within the entire . The tag to locate in the . The zero-based index of the first ocurrence of in the tag list. Inserts an element into the at the specified index. The zero-based index at which the item should be inserted. The tag to insert. is less than 0 or is greater than . Removes the first occurrence of a specific object from the . The tag to remove from the . if is successfully removed; otherwise, . This method also returns if was not found in the . Removes the element at the specified index of the . The zero-based index of the element to remove. index is less than 0 or is greater than . Returns an enumerator that iterates through the . An enumerator that iterates through the . Gets the number of tags contained in the . The number of elements contained in the . Gets a value indicating whether the is read-only. This property will always return . Always returns . Gets or sets the tags at the specified index. The item index. is not a valid index in the . The element at the specified index. An enumerator for traversing a tag list collection. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Advances the enumerator to the next element of the collection. if the enumerator was successfully advanced to the next element; if the enumerator has passed the end of the collection. Sets the enumerator to its initial position, which is before the first element in the collection. Gets the element in the collection at the current position of the enumerator. The element in the collection at the current position of the enumerator. Gets the element in the collection at the current position of the enumerator. The element in the collection at the current position of the enumerator.