From 0fd9ba330c8ed2b45c31ea52fca34e02d7ee5069 Mon Sep 17 00:00:00 2001 From: David Luna Date: Fri, 12 Jul 2024 14:07:55 +0200 Subject: [PATCH] refactor(detector-alibaba): fix return type --- .../src/detectors/AlibabaCloudEcsDetector.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/detectors/AlibabaCloudEcsDetector.ts b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/detectors/AlibabaCloudEcsDetector.ts index 1fae739467..3daf784331 100644 --- a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/detectors/AlibabaCloudEcsDetector.ts +++ b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/detectors/AlibabaCloudEcsDetector.ts @@ -16,6 +16,7 @@ import { DetectorSync, + IResource, Resource, ResourceAttributes, ResourceDetectionConfig, @@ -58,7 +59,7 @@ class AlibabaCloudEcsDetector implements DetectorSync { * * @param config (unused) The resource detection config */ - detect(_config?: ResourceDetectionConfig): Resource { + detect(_config?: ResourceDetectionConfig): IResource { return new Resource({}, this._getAttributes()); }