Skip to content

Commit e594ce8

Browse files
committed
test
1 parent d1264bc commit e594ce8

File tree

5 files changed

+45
-29
lines changed

5 files changed

+45
-29
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"@opentelemetry/exporter-zipkin": "1.26.0",
103103
"@opentelemetry/id-generator-aws-xray": "1.2.2",
104104
"@opentelemetry/instrumentation": "0.53.0",
105-
"@opentelemetry/instrumentation-aws-sdk": "0.44.0",
105+
"@opentelemetry/instrumentation-aws-sdk": "0.49.0",
106106
"@opentelemetry/propagator-aws-xray": "1.26.0",
107107
"@opentelemetry/resource-detector-aws": "1.6.1",
108108
"@opentelemetry/resources": "1.26.0",

aws-distro-opentelemetry-node-autoinstrumentation/test/patches/aws/services/bedrock.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 { Bedrock } from '@aws-sdk/client-bedrock';
1313
import { BedrockAgent } from '@aws-sdk/client-bedrock-agent';
@@ -20,6 +20,7 @@ import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
2020
import { expect } from 'expect';
2121
import { AWS_ATTRIBUTE_KEYS } from '../../../../src/aws-attribute-keys';
2222
import { AwsSpanProcessingUtil } from '../../../../src/aws-span-processing-util';
23+
import { InstrumentationBase, InstrumentationConfig } from '@opentelemetry/instrumentation';
2324

2425
// This file's contents are being contributed to upstream
2526
// - https://github.com/open-telemetry/opentelemetry-js-contrib/pull/2361

aws-distro-opentelemetry-node-autoinstrumentation/test/patches/aws/services/secretsmanager.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 { SecretsManager } from '@aws-sdk/client-secrets-manager';
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

aws-distro-opentelemetry-node-autoinstrumentation/test/patches/instrumentation-patch.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
AttributeValue,
1313
} from '@opentelemetry/api';
1414
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
15-
import { Instrumentation } from '@opentelemetry/instrumentation';
15+
import { Instrumentation, InstrumentationBase, InstrumentationConfig } from '@opentelemetry/instrumentation';
1616
import { AwsInstrumentation, NormalizedRequest, NormalizedResponse } from '@opentelemetry/instrumentation-aws-sdk';
1717
import { AwsLambdaInstrumentation, AwsLambdaInstrumentationConfig } from '@opentelemetry/instrumentation-aws-lambda';
1818
import { expect } from 'expect';
@@ -55,7 +55,7 @@ applyInstrumentationPatches(PATCHED_INSTRUMENTATIONS);
5555

5656
const extendedAwsSdkInstrumentation: AwsInstrumentation = new AwsInstrumentation();
5757
applyInstrumentationPatches([extendedAwsSdkInstrumentation]);
58-
registerInstrumentationTesting(extendedAwsSdkInstrumentation);
58+
registerInstrumentationTesting(extendedAwsSdkInstrumentation as unknown as InstrumentationBase<InstrumentationConfig>);
5959

6060
describe('InstrumentationPatchTest', () => {
6161
it('SanityTestUnpatchedAwsSdkInstrumentation', () => {

package-lock.json

Lines changed: 38 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)