-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New semconvgen template and update to semconv 1.25.0 #3586
Conversation
opentelemetry-semantic-conventions/src/opentelemetry/semconv/Client_attributes.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/Client_attributes.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/Url_attributes.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/v1_23_1/Cloudevents_attributes.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/v1_23_1/Http_metrics.py
Outdated
Show resolved
Hide resolved
5a5a24e
to
9176ade
Compare
opentelemetry-semantic-conventions/src/opentelemetry/semconv/Client_attributes.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/Error_attributes.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/Http_attributes.py
Outdated
Show resolved
Hide resolved
f5b5661
to
5021443
Compare
@open-telemetry/python-maintainers could you please take another look and tell if there you see any showstopping issues we need to resolve before moving forward with build-tools changes? |
opentelemetry-semantic-conventions/src/opentelemetry/semconv/v1_23_1/http_metrics.py
Outdated
Show resolved
Hide resolved
docs/getting_started/tests/py311-getting-windows-2019-benchmark.json
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/v1_23_1/db_metrics.py
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/src/opentelemetry/semconv/v1_23_1/db_metrics.py
Outdated
Show resolved
Hide resolved
@lmolkova it looks like we decided to go ahead with the version namespace approach, is that right? I have no issue with it but wanted to understand what happens at the next semconv version bump, does v1_23_1 directory stay there or deleted? |
7d1bb68
to
bc5bb60
Compare
Discussed offline with @lzchen wrt folder structure. There was an idea from .NET SIG to generate namespace per-version. I.e. users import As a middle ground, I changed folder structure to
The folder structure is fully in Python SIG hands and does not need any build-tools work to be customized. |
Documenting options to split stable/experimental Option 1: ship 1 artifact containing stable and experimental semconv. Emphasize that some parts are experimental via namespace (
Option 2: ship 1 artifact, but two different versions: stable and preview. Stable contains only stable semconv. Preview contains all of them.
Option 3: ship 2 artifacts (
The common mitigation to "when attribute stabilizes, all libs/apps that depend on it need to change" could be to preserve stabilized attributes in Update: reached consensus with Java SIG Ship 2 artifacts:
The documentation will recommend:
|
Hi @open-telemetry/python-maintainers and @open-telemetry/python-approvers, I addressed your feedback. And here's the summary of remaining decisions I'd like to get your input on
Note: none of this discussions are related to build-tools/jinja templates, so I think it means we can move forward with build-tools changes independently from the results of these discussions. LMK if you have any objections. |
opentelemetry-semantic-conventions/src/opentelemetry/semconv/user_agent_attributes.py
Outdated
Show resolved
Hide resolved
Based on the SIG discussion 3/14, we have the following preliminary consensus on artifacts+stability outlined in #3586 (comment) as Option 3:
This makes Python consistent with Java approach. Overall, we have proved that new codegeneration changes provide the flexibility to achieve it and generate idiomatic python code, so we can go ahead with them. |
81a02da
to
619dd0c
Compare
it seems to be the pattern, e.g. here opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/environment_variables.py Lines 15 to 21 in d285b7f
Happy to change it otherwise. |
23f6797
to
f7a273a
Compare
Don't mind, was just curious. I can see it making sense in sphinx documents but feels strange on python code. |
First stab at open-telemetry/semantic-conventions#551
Remaining discussions:
Please delete options that are not relevant.
How Has This Been Tested?
Does This PR Require a Contrib Repo Change?
Checklist: