コード例 #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;
 }