From 9c10bd7a64cb7ad2582f233115e55f36209edccf Mon Sep 17 00:00:00 2001 From: legendecas Date: Wed, 28 Jul 2021 01:51:45 +0800 Subject: [PATCH] fix: fixup aws detector readme (#2379) --- packages/opentelemetry-resource-detector-aws/README.md | 2 +- .../src/detectors/AwsEc2Detector.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opentelemetry-resource-detector-aws/README.md b/packages/opentelemetry-resource-detector-aws/README.md index a02e7519f5..757ba64a3d 100644 --- a/packages/opentelemetry-resource-detector-aws/README.md +++ b/packages/opentelemetry-resource-detector-aws/README.md @@ -19,7 +19,7 @@ npm install --save @opentelemetry/resource-detector-aws ```typescript import { detectResources } from '@opentelemetry/resources'; -import { awsBeanstalkDetector } from '@opentelemetry/resource-detector-aws' +import { awsEc2Detector } from '@opentelemetry/resource-detector-aws' const resource = await detectResources({ detectors: [awsEc2Detector], }) diff --git a/packages/opentelemetry-resource-detector-aws/src/detectors/AwsEc2Detector.ts b/packages/opentelemetry-resource-detector-aws/src/detectors/AwsEc2Detector.ts index b34c0d7d11..7be914738a 100644 --- a/packages/opentelemetry-resource-detector-aws/src/detectors/AwsEc2Detector.ts +++ b/packages/opentelemetry-resource-detector-aws/src/detectors/AwsEc2Detector.ts @@ -48,7 +48,7 @@ class AwsEc2Detector implements Detector { /** * Attempts to connect and obtain an AWS instance Identity document. If the - * connection is succesful it returns a promise containing a {@link Resource} + * connection is successful it returns a promise containing a {@link Resource} * populated with instance metadata. Returns a promise containing an * empty {@link Resource} if the connection or parsing of the identity * document fails.