File tree Expand file tree Collapse file tree 6 files changed +25
-26
lines changed
Expand file tree Collapse file tree 6 files changed +25
-26
lines changed Original file line number Diff line number Diff line change 22// Licensed under the MIT license.
33
44import {
5+ Context ,
56 OperationTracingOptions ,
67 Span ,
8+ SpanKind ,
79 SpanOptions ,
8- setSpan ,
9- context as otContext ,
1010 getTracer ,
11- Context ,
12- SpanKind
11+ context as otContext ,
12+ setSpan
1313} from "./interfaces" ;
14- import { trace , INVALID_SPAN_CONTEXT } from "@opentelemetry/api" ;
14+ import { INVALID_SPAN_CONTEXT , trace } from "@opentelemetry/api" ;
1515
1616/**
1717 * Arguments for `createSpanFunction` that allow you to specify the
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT license.
33
4- import { assert } from "chai" ;
54import {
6- setSpan ,
5+ Context ,
76 SpanKind ,
8- context as otContext ,
97 getSpanContext ,
10- Context
8+ context as otContext ,
9+ setSpan
1110} from "../src/interfaces" ;
12-
13- import { TestSpan } from "./util/testSpan" ;
1411import { createSpanFunction , isTracingDisabled , knownSpanAttributes } from "../src/createSpan" ;
1512import { OperationTracingOptions } from "../src/interfaces" ;
13+ import { TestSpan } from "./util/testSpan" ;
1614import { TestTracerProvider } from "./util/testTracerProvider" ;
15+ import { assert } from "chai" ;
1716
1817describe ( "createSpan" , ( ) => {
1918 let createSpan : ReturnType < typeof createSpanFunction > ;
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT license.
33
4- import * as openTelemetry from "@opentelemetry/api" ;
54import * as coreAuth from "@azure/core-auth" ;
65import * as coreTracing from "../src/interfaces" ;
6+ import * as openTelemetry from "@opentelemetry/api" ;
7+ import { TestTracer } from "./util/testTracer" ;
78import { assert } from "chai" ;
89import { getTracer } from "../src/interfaces" ;
9- import { TestTracer } from "./util/testTracer" ;
1010
1111type coreAuthTracingOptions = Required < coreAuth . GetTokenOptions > [ "tracingOptions" ] ;
1212
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT license.
33
4- import { assert } from "chai " ;
4+ import { SpanContext , TraceFlags } from "@opentelemetry/api " ;
55import { extractSpanContextFromTraceParentHeader , getTraceParentHeader } from "../src" ;
6- import { TraceFlags , SpanContext } from "@opentelemetry/api " ;
6+ import { assert } from "chai " ;
77
88describe ( "traceParentHeader" , ( ) => {
99 describe ( "#extractSpanContextFromTraceParentHeader" , ( ) => {
Original file line number Diff line number Diff line change 22// Licensed under the MIT license.
33
44import {
5- TimeInput ,
6- Tracer ,
5+ Span ,
6+ SpanAttributeValue ,
7+ SpanAttributes ,
8+ SpanContext ,
79 SpanKind ,
10+ SpanOptions ,
811 SpanStatus ,
9- SpanContext ,
10- SpanAttributes ,
1112 SpanStatusCode ,
12- SpanAttributeValue ,
13- Span ,
14- SpanOptions
13+ TimeInput ,
14+ Tracer
1515} from "../../src/interfaces" ;
1616
1717/**
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT license.
33
4- import { TestSpan } from "./testSpan" ;
54import {
5+ Context as OTContext ,
66 SpanContext ,
77 SpanOptions ,
88 TraceFlags ,
9- Context as OTContext ,
10- context as otContext ,
9+ Tracer ,
1110 getSpanContext ,
12- Tracer
11+ context as otContext
1312} from "../../src/interfaces" ;
13+ import { TestSpan } from "./testSpan" ;
1414
1515/**
1616 * Simple representation of a Span that only has name and child relationships.
You can’t perform that action at this time.
0 commit comments