Skip to content

Commit

Permalink
chore(instr-express): add semconv to readme (#1907)
Browse files Browse the repository at this point in the history
* chore(instr-express): add semconv to readme

* use actual attribute field in readme

* specify the semantic-conventions package

---------

Co-authored-by: Marc Pichler <[email protected]>
  • Loading branch information
JamieDanielson and pichlermarc authored Feb 27, 2024
1 parent e29b72a commit 44b2df0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/node/opentelemetry-instrumentation-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ const expressInstrumentation = new ExpressInstrumentation({
});
```

## Semantic Conventions

This package uses `@opentelemetry/semantic-conventions` version `1.0+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)

Attributes collected:

| Attribute | Short Description | Notes |
| ------------ | ---------------------------------- | ----------------- |
| `http.route` | The matched route (path template). | Key: `HTTP_ROUTE` |

## Useful links

- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
Expand Down

0 comments on commit 44b2df0

Please sign in to comment.