Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sort-imports] update core-tracing with respect to sort-imports rule #19033

Merged
merged 1 commit into from
Dec 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sdk/core/core-tracing/src/createSpan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT license.

import {
Context,
OperationTracingOptions,
Span,
SpanKind,
SpanOptions,
setSpan,
context as otContext,
getTracer,
Context,
SpanKind
context as otContext,
setSpan
} from "./interfaces";
import { trace, INVALID_SPAN_CONTEXT } from "@opentelemetry/api";
import { INVALID_SPAN_CONTEXT, trace } from "@opentelemetry/api";

/**
* Arguments for `createSpanFunction` that allow you to specify the
Expand Down
11 changes: 5 additions & 6 deletions sdk/core/core-tracing/test/createSpan.spec.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { assert } from "chai";
import {
setSpan,
Context,
SpanKind,
context as otContext,
getSpanContext,
Context
context as otContext,
setSpan
} from "../src/interfaces";

import { TestSpan } from "./util/testSpan";
import { createSpanFunction, isTracingDisabled, knownSpanAttributes } from "../src/createSpan";
import { OperationTracingOptions } from "../src/interfaces";
import { TestSpan } from "./util/testSpan";
import { TestTracerProvider } from "./util/testTracerProvider";
import { assert } from "chai";

describe("createSpan", () => {
let createSpan: ReturnType<typeof createSpanFunction>;
Expand Down
4 changes: 2 additions & 2 deletions sdk/core/core-tracing/test/interfaces.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import * as openTelemetry from "@opentelemetry/api";
import * as coreAuth from "@azure/core-auth";
import * as coreTracing from "../src/interfaces";
import * as openTelemetry from "@opentelemetry/api";
import { TestTracer } from "./util/testTracer";
import { assert } from "chai";
import { getTracer } from "../src/interfaces";
import { TestTracer } from "./util/testTracer";

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

Expand Down
4 changes: 2 additions & 2 deletions sdk/core/core-tracing/test/traceParentHeader.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { assert } from "chai";
import { SpanContext, TraceFlags } from "@opentelemetry/api";
import { extractSpanContextFromTraceParentHeader, getTraceParentHeader } from "../src";
import { TraceFlags, SpanContext } from "@opentelemetry/api";
import { assert } from "chai";

describe("traceParentHeader", () => {
describe("#extractSpanContextFromTraceParentHeader", () => {
Expand Down
14 changes: 7 additions & 7 deletions sdk/core/core-tracing/test/util/testSpan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Licensed under the MIT license.

import {
TimeInput,
Tracer,
Span,
SpanAttributeValue,
SpanAttributes,
SpanContext,
SpanKind,
SpanOptions,
SpanStatus,
SpanContext,
SpanAttributes,
SpanStatusCode,
SpanAttributeValue,
Span,
SpanOptions
TimeInput,
Tracer
} from "../../src/interfaces";

/**
Expand Down
8 changes: 4 additions & 4 deletions sdk/core/core-tracing/test/util/testTracer.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { TestSpan } from "./testSpan";
import {
Context as OTContext,
SpanContext,
SpanOptions,
TraceFlags,
Context as OTContext,
context as otContext,
Tracer,
getSpanContext,
Tracer
context as otContext
} from "../../src/interfaces";
import { TestSpan } from "./testSpan";

/**
* Simple representation of a Span that only has name and child relationships.
Expand Down