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

Commit

Permalink
docs: Add missing instrumentation context
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Jun 26, 2024
1 parent 8c0e0a8 commit af0ec91
Showing 1 changed file with 31 additions and 0 deletions.
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,
}
}
}
```

0 comments on commit af0ec91

Please sign in to comment.