Skip to content

Commit ef72c8c

Browse files
committed
step functions fix
1 parent e594ce8 commit ef72c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/test/patches/aws/services/step-functions.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { applyInstrumentationPatches } from './../../../../src/patches/instrumen
77

88
const instrumentations: AwsInstrumentation[] = [new AwsInstrumentation()];
99
applyInstrumentationPatches(instrumentations);
10-
registerInstrumentationTesting(instrumentations[0]);
10+
registerInstrumentationTesting(instrumentations[0] as unknown as InstrumentationBase<InstrumentationConfig>);
1111

1212
import { SFN } from '@aws-sdk/client-sfn';
1313
import * as nock from 'nock';
@@ -16,6 +16,7 @@ import { SpanKind } from '@opentelemetry/api';
1616
import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
1717
import { expect } from 'expect';
1818
import { AWS_ATTRIBUTE_KEYS } from '../../../../src/aws-attribute-keys';
19+
import { InstrumentationBase, InstrumentationConfig } from '@opentelemetry/instrumentation';
1920

2021
const region = 'us-east-1';
2122

0 commit comments

Comments
 (0)