We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72106e7 commit 4318239Copy full SHA for 4318239
docs/integrations/opentelemetry.md
@@ -221,15 +221,17 @@ function utility() {
221
222
This works outside of the handler by retriving current span from `AsyncLocalStorage`
223
224
-## setAttribute
+## setAttributes
225
226
-`setAttribute` is a utility to set attribute to the current span.
+`setAttributes` is a utility to set attributes to the current span.
227
228
```typescript
229
-import { setAttribute } from '@elysiajs/opentelemetry'
+import { setAttributes } from '@elysiajs/opentelemetry'
230
231
function utility() {
232
- setAttribute('custom.attribute', 'value')
+ span.setAttributes({
233
+ 'custom.attribute': 'value'
234
+ })
235
}
236
```
237
0 commit comments