Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Flarna committed Feb 24, 2020
1 parent 8091be7 commit 1d80426
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 5 deletions.
19 changes: 18 additions & 1 deletion packages/opentelemetry-api/test/api/api.test.ts
Expand Up @@ -41,7 +41,24 @@ describe('API', () => {

describe('GlobalTracerProvider', () => {
const spanContext = {
traceId: new Uint8Array([0xd4, 0xcd, 0xa9, 0x5b, 0x65, 0x2f, 0x4a, 0x15, 0x92, 0xb4, 0x49, 0xd5, 0x92, 0x9f, 0xda, 0x1b]),
traceId: new Uint8Array([
0xd4,
0xcd,
0xa9,
0x5b,
0x65,
0x2f,
0x4a,
0x15,
0x92,
0xb4,
0x49,
0xd5,
0x92,
0x9f,
0xda,
0x1b,
]),
spanId: new Uint8Array([0x6e, 0x0c, 0x63, 0x25, 0x7d, 0xe3, 0x4c, 0x92]),
traceFlags: TraceFlags.UNSAMPLED,
};
Expand Down
Expand Up @@ -40,13 +40,56 @@ describe('NoopSpan', () => {
span.addEvent('sent', { id: '42', key: 'value' });

span.addLink({
traceId: new Uint8Array([0xd4, 0xcd, 0xa9, 0x5b, 0x65, 0x2f, 0x4a, 0x15, 0x92, 0xb4, 0x49, 0xd5, 0x92, 0x9f, 0xda, 0x1b]),
traceId: new Uint8Array([
0xd4,
0xcd,
0xa9,
0x5b,
0x65,
0x2f,
0x4a,
0x15,
0x92,
0xb4,
0x49,
0xd5,
0x92,
0x9f,
0xda,
0x1b,
]),
spanId: new Uint8Array([0x6e, 0x0c, 0x63, 0x25, 0x7d, 0xe3, 0x4c, 0x92]),
});
span.addLink(
{
traceId: new Uint8Array([0xd4, 0xcd, 0xa9, 0x5b, 0x65, 0x2f, 0x4a, 0x15, 0x92, 0xb4, 0x49, 0xd5, 0x92, 0x9f, 0xda, 0x1b]),
spanId: new Uint8Array([0x6e, 0x0c, 0x63, 0x25, 0x7d, 0xe3, 0x4c, 0x92]),
traceId: new Uint8Array([
0xd4,
0xcd,
0xa9,
0x5b,
0x65,
0x2f,
0x4a,
0x15,
0x92,
0xb4,
0x49,
0xd5,
0x92,
0x9f,
0xda,
0x1b,
]),
spanId: new Uint8Array([
0x6e,
0x0c,
0x63,
0x25,
0x7d,
0xe3,
0x4c,
0x92,
]),
},
{ id: '42', key: 'value' }
);
Expand Down
Expand Up @@ -15,7 +15,13 @@
*/

import * as assert from 'assert';
import { NoopTracer, NOOP_SPAN, SpanKind, INVALID_TRACE_ID, INVALID_SPAN_ID } from '../../src';
import {
NoopTracer,
NOOP_SPAN,
SpanKind,
INVALID_TRACE_ID,
INVALID_SPAN_ID,
} from '../../src';
import { Context } from '@opentelemetry/scope-base';

describe('NoopTracer', () => {
Expand Down

0 comments on commit 1d80426

Please sign in to comment.