Skip to content

Commit cecb3a9

Browse files
authored
updated with respect to sort-imports rule (Azure#19033)
1 parent 6e0eea2 commit cecb3a9

File tree

6 files changed

+25
-26
lines changed

6 files changed

+25
-26
lines changed

sdk/core/core-tracing/src/createSpan.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
// Licensed under the MIT license.
33

44
import {
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

sdk/core/core-tracing/test/createSpan.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { assert } from "chai";
54
import {
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";
1411
import { createSpanFunction, isTracingDisabled, knownSpanAttributes } from "../src/createSpan";
1512
import { OperationTracingOptions } from "../src/interfaces";
13+
import { TestSpan } from "./util/testSpan";
1614
import { TestTracerProvider } from "./util/testTracerProvider";
15+
import { assert } from "chai";
1716

1817
describe("createSpan", () => {
1918
let createSpan: ReturnType<typeof createSpanFunction>;

sdk/core/core-tracing/test/interfaces.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import * as openTelemetry from "@opentelemetry/api";
54
import * as coreAuth from "@azure/core-auth";
65
import * as coreTracing from "../src/interfaces";
6+
import * as openTelemetry from "@opentelemetry/api";
7+
import { TestTracer } from "./util/testTracer";
78
import { assert } from "chai";
89
import { getTracer } from "../src/interfaces";
9-
import { TestTracer } from "./util/testTracer";
1010

1111
type coreAuthTracingOptions = Required<coreAuth.GetTokenOptions>["tracingOptions"];
1212

sdk/core/core-tracing/test/traceParentHeader.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { assert } from "chai";
4+
import { SpanContext, TraceFlags } from "@opentelemetry/api";
55
import { extractSpanContextFromTraceParentHeader, getTraceParentHeader } from "../src";
6-
import { TraceFlags, SpanContext } from "@opentelemetry/api";
6+
import { assert } from "chai";
77

88
describe("traceParentHeader", () => {
99
describe("#extractSpanContextFromTraceParentHeader", () => {

sdk/core/core-tracing/test/util/testSpan.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
// Licensed under the MIT license.
33

44
import {
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
/**

sdk/core/core-tracing/test/util/testTracer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { TestSpan } from "./testSpan";
54
import {
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.

0 commit comments

Comments
 (0)