Show / Hide Table of Contents

Class RequestOperationHolderAdapter

Object adapter implementing IRequestTelemetryOperationHolder but delegating to an Application Insight Microsoft.ApplicationInsights.Extensibility.IOperationHolder{RequestTelemetry} instance. Represents the operation item that holds telemetry which is tracked on end request. Operation can be associated with either WEB or SQL dependencies. Specialized interface to encapsulates information about a web request operation handled by the application.

Inheritance
System.Object
OperationHolderAdapter<RequestTelemetry>
RequestOperationHolderAdapter
Implements
IRequestTelemetryOperationHolder
ITelemetryOperationHolder
Inherited Members
OperationHolderAdapter<RequestTelemetry>.Operation
OperationHolderAdapter<RequestTelemetry>.Id
OperationHolderAdapter<RequestTelemetry>.Name
OperationHolderAdapter<RequestTelemetry>.Success
OperationHolderAdapter<RequestTelemetry>.Duration
OperationHolderAdapter<RequestTelemetry>.Metrics
OperationHolderAdapter<RequestTelemetry>.Properties
OperationHolderAdapter<RequestTelemetry>.Timestamp
OperationHolderAdapter<RequestTelemetry>.SetSuccess()
OperationHolderAdapter<RequestTelemetry>.SetFailed()
OperationHolderAdapter<RequestTelemetry>.StopOperation()
Namespace: DNVGL.One.Telemetry.Core.ApplicationInsights.Adapters
Assembly: DNVGL.One.Telemetry.Core.ApplicationInsights.dll
Syntax
public class RequestOperationHolderAdapter : OperationHolderAdapter<RequestTelemetry>, IRequestTelemetryOperationHolder, ITelemetryOperationHolder

Constructors

View Source

RequestOperationHolderAdapter(IOperationHolder<RequestTelemetry>)

Initializes a new instance of the RequestOperationHolderAdapter class.

Declaration
public RequestOperationHolderAdapter(IOperationHolder<RequestTelemetry> operation)
Parameters
Type Name Description
IOperationHolder<RequestTelemetry> operation

The adaptee object - an Application Insights operation holder

Properties

View Source

ResponseCode

Gets or sets response code returned by the application after handling the request.

Declaration
public string ResponseCode { get; set; }
Property Value
Type Description
System.String
View Source

Source

Gets or sets the source for the request telemetry object. This often is a hashed instrumentation key identifying the caller.

Declaration
public string Source { get; set; }
Property Value
Type Description
System.String
View Source

Url

Gets or sets request url (optional).

Declaration
public Uri Url { get; set; }
Property Value
Type Description
Uri

Implements

IRequestTelemetryOperationHolder
ITelemetryOperationHolder
  • View Source
Back to top Copyright © DNV GL AS. All rights reserved.