예제 #1
0
 protected ApplicationInsightsSpan(ApplicationInsightsTracer tracer,
                                   IApplicationInsightsSpanContext typedContext,
                                   string operationName, DateTimeOffset start, SpanKind spanKind,
                                   Endpoint localEndpoint = null, Dictionary <string, string> tagsActual = null)
 {
     TypedContext  = typedContext;
     SpanKind      = spanKind;
     OperationName = operationName;
     Started       = start;
     LocalEndpoint = localEndpoint;
     Tracer        = tracer;
 }
예제 #2
0
        public RequestSpan(ApplicationInsightsTracer tracer, IApplicationInsightsSpanContext typedContext,
                           string operationName, DateTimeOffset start, SpanKind spanKind, Endpoint localEndpoint = null,
                           Dictionary <string, string> tagsActual = null) : base(tracer, typedContext, operationName, start, spanKind,
                                                                                 localEndpoint, tagsActual)
        {
            var telemetry = new RequestTelemetry {
                Id = typedContext.SpanId, Name = operationName
            };

            InitializeTelemetry(typedContext, localEndpoint, tagsActual, telemetry);

            _operation = Tracer.Client.StartOperation(telemetry);
        }
예제 #3
0
 public ApplicationInsightsSpanBuilder(ApplicationInsightsTracer tracer, string operationName)
 {
     _tracer        = tracer;
     _operationName = operationName;
 }