Skip to content

Generate semantic conventions for event names and body fieldsΒ #135

@mcumings

Description

@mcumings

Area(s)

area:android

What happened?

Description

Recently, the io.opentelemetry.semconv.incubating.AndroidIncubatingAttributes#ANDROID_STATE attribute has been deprecated with documentation pointing users to use device.app.lifecycle instead. The problem is that there are no semantic convention constants in generated code which refer to this new name. A similar condition exists for ios.state.

Projects are frequently configured to fail on compilation warnings. Kotlin provides no mechanism for ignoring a specific warning which would force consumers to disable compilation failure on all compile warnings, require the consumer to define their own semantic convention definition for these attributes, or to avoid updating to recent semantic convention library releases.

Expected Result

Deprecated constants have appropriate replacement comments/API to transition to.

Actual Result

Compilation results in deprecation warnings, leading to compilation failure (when warnings-as-errors is enabled).

Semantic convention version

1.29.0-alpha (1.27.0-alpha works)

Additional context

open-telemetry/semantic-conventions#794 and open-telemetry/semantic-conventions#1461 look to be related to this change.

Tagging @breedx-splk on this, as requested. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions