Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify parameters for emtting a log record #3354

Merged
merged 17 commits into from
Apr 8, 2023
Merged
Changes from 3 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
10 changes: 6 additions & 4 deletions specification/logs/bridge-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,12 @@ Emit a `LogRecord` to the processing pipeline.

This function MAY be named `logRecord`.
jack-berg marked this conversation as resolved.
Show resolved Hide resolved

**Parameters:**
The API MUST accept the following parameters:
jack-berg marked this conversation as resolved.
Show resolved Hide resolved

* `logRecord` - the [LogRecord](#logrecord) to emit.
* The [LogRecord](#logrecord) to emit.
* The [Context](../context/README.md) associated with the `LogRecord`. The API
MAY also have an option for implicitly using the current Context as a default
alanwest marked this conversation as resolved.
Show resolved Hide resolved
behavior.
jack-berg marked this conversation as resolved.
Show resolved Hide resolved

## LogRecord

Expand All @@ -129,8 +132,7 @@ parameters:

- [Timestamp](./data-model.md#field-timestamp)
- [Observed Timestamp](./data-model.md#field-observedtimestamp)
- [Context](../context/README.md) that contains the
[TraceContext](./data-model.md#trace-context-fields)
- [TraceContext](./data-model.md#trace-context-fields)
- [Severity Number](./data-model.md#field-severitynumber)
- [Severity Text](./data-model.md#field-severitytext)
- [Body](./data-model.md#field-body)
Expand Down