Skip to content

Commit

Permalink
Merge branch 'main' into fix/sdk-node-jaeger
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Apr 24, 2023
2 parents 58d481a + de354db commit 6ef1a03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ import { InMemoryLogRecordExporter } from './../../../src/export/InMemoryLogReco
const describeDocument =
typeof document === 'object' ? describe : describe.skip;

/**
* VisibilityState has been removed from TypeScript 4.6.0+
*/
type WebVisibilityState = 'visible' | 'hidden';

describeDocument('BatchLogRecordProcessor - web main context', () => {
let visibilityState: VisibilityState = 'visible';
// TODO: change to DocumentVisibilityState when TypeScript is upgraded to 4.6+
let visibilityState: WebVisibilityState = 'visible';
let exporter: LogRecordExporter;
let processor: BatchLogRecordProcessor;
let forceFlushSpy: sinon.SinonStub;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const describeDocument =
typeof document === 'object' ? describe : describe.skip;

describeDocument('BatchSpanProcessor - web main context', () => {
// TODO: change to DocumentVisibilityState when TypeScript is upgraded to 4.6+
let visibilityState: WebVisibilityState = 'visible';
let exporter: SpanExporter;
let processor: BatchSpanProcessor;
Expand Down

0 comments on commit 6ef1a03

Please sign in to comment.