diff --git a/packages/opentelemetry-resource-detector-gcp/README.md b/packages/opentelemetry-resource-detector-gcp/README.md index 6f546e066e..820991afd3 100644 --- a/packages/opentelemetry-resource-detector-gcp/README.md +++ b/packages/opentelemetry-resource-detector-gcp/README.md @@ -19,7 +19,15 @@ npm install --save @opentelemetry/resource-detector-gcp ## Usage -> TODO +```typescript +import { detectResources } from '@opentelemetry/resources'; +import { gcpDetector } from '@opentelemetry/resource-detector-gcp' +const resource = await detectResources({ + detectors: [gcpDetector], +}) + +const tracerProvider = new NodeTracerProvider({ resource }); +``` ## Useful links