Skip to content

Commit

Permalink
add semantic clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
breedx-splk committed Jun 3, 2024
1 parent eb17e3f commit 2837df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/general/session.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ every time a session is created. When a new session is created as a continuation
the `session.previous_id` SHOULD be included in the event. The values of `session.id` and `session.previous_id`
MUST be different.

When the `session.start` event contains both `session.id` and `session.previous_id` fields, the event then implies
that the previous session has ended. If the session ID in `session.previous_id` has not yet ended via explicit
`session.end` event, then the receiver SHOULD treat this continuation event as semantically equivalent to
`session.end(session.previous_id)` and `session.start(session.id)`.

| Body field | Type | Description | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) |
|---------------------------------------------------------------|--------|------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| [`session.id`](/docs/attributes-registry/session.md) | string | The ID of the new session being started. | `Required` |
Expand Down

0 comments on commit 2837df6

Please sign in to comment.