Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

feat: Add docs for missing instrumentation context #1320

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/docs/sdk/event-payloads/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -810,3 +810,34 @@ This is mostly set on transactions in a web server environment where one transac
}
}
```

## Missing Instrumentation Context

Context contains information about missing or failed OTEL instrumentation.

The required field is `package` which should contain the package or framework where a missing instrumentation was detected.

`package`

: **Required.** The package or framework where a missing instrumentation was detected.

- Example: `express`

`javascript.is_cjs`

: _Optional_. Boolean that indicates if the context was added from a commonjs module.

- Example: `true`

### Example Response Context

```json
{
"contexts": {
"missing_instrumentation": {
"package": "express",
"javascript.is_cjs": true,
}
}
}
```
Loading