Skip to content

Commit

Permalink
Merge 013eabe into 435ab73
Browse files Browse the repository at this point in the history
  • Loading branch information
vknelluri authored Mar 24, 2021
2 parents 435ab73 + 013eabe commit 6a79bfd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/opentelemetry-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ npm install --save @opentelemetry/resources

## Usage

> TODO
```typescript
import { Resource, SERVICE_RESOURCE } from '@opentelemetry/resources';
const resource = new Resource({
[SERVICE_RESOURCE.NAME]: 'api-service',
});

const another_resource = new Resource({
'service.version': 2.0.0,
'service.group': 'instrumentation-group'
});
const merged_resource = resource.merge(another_resource);
```

## Useful links

Expand Down

0 comments on commit 6a79bfd

Please sign in to comment.