Skip to content

fix schema_url constants in semconv - #4069

Merged
lzchen merged 8 commits into
open-telemetry:mainfrom
emdneto:fix/semconv
Jul 22, 2024
Merged

fix schema_url constants in semconv#4069
lzchen merged 8 commits into
open-telemetry:mainfrom
emdneto:fix/semconv

Conversation

@emdneto

@emdneto emdneto commented Jul 22, 2024

Copy link
Copy Markdown
Member

Description

Right now, we have an inaccessible constant for SCHEMA_URL; fix this. I don't know the impact of this in practice for users, but I can imagine that using the wrong schema_url, will lead to issues in a telemetry consumer which does schema translations when needed to compare the schema url's (i.e., schemaprocessor) . Also, this can affect the schema_url we are setting in instrumentation scope for instrumentation libraries that are being migrated to new semconv in contrib repo, see https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/opentelemetry-instrumentation/src/opentelemetry/instrumentation/_semconv.py#L396

  • PR to update tests in contrib after this is merged

@emdneto
emdneto requested review from a team and lmolkova and removed request for a team July 22, 2024 13:04
Comment thread opentelemetry-semantic-conventions/src/opentelemetry/semconv/schemas.py Outdated
Comment thread opentelemetry-semantic-conventions/src/opentelemetry/semconv/schemas.py Outdated
@xrmx

xrmx commented Jul 22, 2024

Copy link
Copy Markdown
Contributor

Good catch!

emdneto and others added 5 commits July 22, 2024 10:12
…chemas.py

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
…chemas.py

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

@lmolkova lmolkova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants