Skip to content

Conversation

@jcantrill
Copy link
Contributor

This PR:

Ref: https://issues.redhat.com/browse/LOG-5737

cc @
cahartma @pavolloffay @xperimental @periklis

@xperimental
Copy link
Contributor

Sorry for accidentally pushing to the wrong fork. 😞

Copy link

@periklis periklis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


### Log Entry Structure

All log streams include the following [logData](https://opentelemetry.io/docs/specs/otel/logs/data-model/#log-and-event-record-definition) fields

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes more sense to call logRecords since its the key rather than logData.
Is there any value in an example snippet of the yaml here?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose "logData", which should have been "log data" because that is the header text for the spec, though in general I find this page only useful when paired with the proto buff definition. It is not obvious, IMO, how to build the payload from this document.

* `scope` for a scope attribute
* `log` for a log attribute


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

| `body` | all | |
| `observedTimeUnixNano` | all | |
| `timeUnixNano` | all | |
| `severityNumber` | container, journal | |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we already send a "log level number"? If not, we might skip on this and continue just using the text representation. We can still add the field when someone needs it...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not send the number in Viaq, all instance are translated from number to text and text has a pretty specific definition here which seems excessive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Settled on removing severityNumber

Copy link

@JoaoBraveCoding JoaoBraveCoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pavolloffay pavolloffay merged commit e4a4d1e into rhobs:main Oct 15, 2024
@jcantrill jcantrill deleted the log5737 branch October 15, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants