Skip to content

Introduce log type field to point to a category of definitions used for log record #3429

Description

@thompson-tomo

What are you trying to achieve?

I want to be able to set the type of log record I am emitting so that the log record can be transformed from the version specified in the schema url to the latest version.

Additional context.

By having the type field seperate from event name would mean that the event name can become fully qualified for that log record rather than pointing to the type.

Example would be https://opentelemetry.io/docs/specs/semconv/azure/azure-events/ has the name azure.resource.log but that doesn't tell you if it is for Entra ID, App Service etc with the proposal here being the type would be azure.resource.log & then name becomes something like Azure Log: {{service}} aka Azure Log: Entra Id. This would mirror spans.

This would also help with consistency.

If we were to increase the volume of definitions in semconv it would enable an increased chance of the name being fully qualified it does however have the trade off that the ability to transform events into metrics is decreased.

An example would be currently if you wanted to get a count of all azure operations which resulted in a result.type of failed, this would be straight forward as you just need to filter events based on result.type & the event name. If it is now split, this list of event name goes from a single value to a large list which must be managed. With this proposal we would have a field dedicated for systems to use for aggregation, querying & transformation.

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Done
    Status
    Need triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions