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; }
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); }
public ApplicationInsightsSpanBuilder(ApplicationInsightsTracer tracer, string operationName) { _tracer = tracer; _operationName = operationName; }