8000 Update to semconv 1.34.0 by trask · Pull Request #217 · open-telemetry/semantic-conventions-java · GitHub
[go: up one dir, main page]

Skip to content

Conversation

trask
Copy link
Member
@trask trask commented May 12, 2025

No description provided.

@trask trask changed the title Update to semconv 1.33.0 and weaver 0.15.0 Update to semconv 1.33.0 May 15, 2025
@trask
Copy link
Member Author
trask commented May 19, 2025

this is looking better...

@trask
Copy link
Member Author

trask commented May 19, 2025

more javadoc formatting work ahead:

Task :semconv-incubating:javadoc FAILED
Process environment variables, <key> being the environment variable name, the value being the

@trask trask changed the title Update to semconv 1.33.0 Update to semconv 1.34.0 May 19, 2025
*
* <p>For sanitization see <a
* href="../database/database-spans.md#sanitization-of-dbquerytext">Sanitization of {@code
* href="/docs/database/database-spans.md#sanitization-of-dbquerytext">Sanitization of {@code
Copy link
Member Author

Choose a reason for hiding this comment

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

@open-telemetry/weaver-maintainers @lmolkova what do you think of having weaver automatically turn this into a fully-qualified link, e.g.

https://github.com/open-telemetry/semantic-conventions/blob/v1.34.0/docs/database/database-spans.md#sanitization-of-dbquerytext

@trask trask marked this pull request as ready for review May 20, 2025 03:27
@trask trask requested review from a team as code owners May 20, 2025 03:27
{% for attribute in ctx.attributes | select("enum") | rejectattr("name", "in", ctx.excluded_attributes) %}
{%- if attribute is stable -%}
{% for attribute in ctx.attributes | select("enum") | rejectattr("name", "in", ctx.excluded_attributes) %}
{% set enum_deprecated_in_favor_of_stable = namespace(value=false) %}
Copy link
Member

Choose a reason for hiding this comment

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

What does the namespace function do?

Copy link
Member Author

Choose a reason for hiding this comment

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

it creates something like an object with a nested attribute value, which can then be updated inside of an inner block

think of this code like AtomicBoolean being passed into methods (in this case into a nested if) so you can update the value in the method and then get updated value after the method call

{%- endif -%}
{%- endif -%}
{%- endfor %}
{%- if enum_deprecated_in_favor_of_stable.value -%}
Copy link
Member

Choose a reason for hiding this comment

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

Can you summarize what this change is doing?

Copy link
Member Author

Choose a reason for hiding this comment

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

when writing incubating model, deprecate the enum class if the attribute has been stabilized and it has no values which are still experimental (other than those which may be deprecated explicitly)

(this is to deal with the db system name mixed status where only some values are stabilized

@trask
Copy link
Member Author
trask commented May 28, 2025

more javadoc formatting work ahead:

Task :semconv-incubating:javadoc FAILED
Process environment variables, being the environment variable name, the value being the

luckily not more javadoc formatting work...

fixed in open-telemetry/semantic-conventions#2304

@trask trask merged commit c80e6fe into open-telemetry:main Jun 9, 2025
15 checks passed
@trask trask deleted the update-weaver branch June 9, 2025 17:21
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.

2 participants

0