-
Notifications
You must be signed in to change notification settings - Fork 32
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
Registry manifest and Schema diff #400
base: main
Are you sure you want to change the base?
Changes from 47 commits
edab834
fe7d7b5
76db2aa
ad77910
6de07ee
5efe6b1
6cdfbfa
880649f
a87807b
8f8bdaf
a818f4e
05256ea
c584f30
374def2
1b7c9c2
2abd024
83f45eb
6312e42
6532bf3
f5efacc
9bda8cb
edf85b0
3b41c58
bde3eef
904e856
3c4b6dd
c0609b5
6ba427c
ebcd15f
8dcd311
b58d200
a1ab93a
396450f
12c79c2
0a63cd8
e067b7f
80121f5
dbe4316
7e0a813
bfdcfa9
e258547
eef3eff
619c885
b4c49e7
99b725d
0f430a8
78bfb77
98b7ad5
06f3d19
8fbdf8f
ab7936d
33fefc7
a141296
1388d1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ Brief: Span attributes used by non-OTLP exporters to represent OpenTelemetry Sco | |
- Examples: [ | ||
"io.opentelemetry.contrib.mongodb", | ||
] | ||
- Deprecated: use the `otel.scope.name` attribute. | ||
- Deprecated: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this test be updated? |
||
|
||
|
||
#### Attribute `otel.library.version` | ||
|
@@ -36,7 +36,7 @@ Brief: Span attributes used by non-OTLP exporters to represent OpenTelemetry Sco | |
- Examples: [ | ||
"1.0.0", | ||
] | ||
- Deprecated: use the `otel.scope.version` attribute. | ||
- Deprecated: | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ Brief: {{ resource.brief }} | |
- Sampling relevant: {{ attribute.sampling_relevant }} | ||
{%- endif %} | ||
{%- if attribute.deprecated %} | ||
- Deprecated: {{ attribute.deprecated }} | ||
- Deprecated: {{ attribute.deprecated.note }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is/will this be a breaking change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is a breaking change at the rendering level because, without the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Related comment: https://github.com/open-telemetry/weaver/pull/400/files#r1868713601 ( I thought we'd only keep the But if we do have I think codegen would need to generate something like /*
* ...
* @deprecated renamed to {@link
* io.opentelemetry.semconv.FooAttributes#FOO_BAR}.
* Here's an additional note.
*/ from deprecated:
action: renamed
new_name: foo.bar
note: Here's an additional note. so maybe we should eventually provide some helper filters to render those. In the scope of this PR, if someone uses WDYT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated the PR to use the top-level note as discussed initially. Jinja renders There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We probably need to put this in the changelog or have some kind of migration guide for this then. |
||
{%- endif %} | ||
{% if attribute.stability %} | ||
- Stability: {{ attribute.stability | capitalize }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "weaver_otel_schema" | ||
version = "0.10.0" | ||
authors.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
publish.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
weaver_version = { path = "../weaver_version" } | ||
weaver_common = { path = "../weaver_common" } | ||
|
||
thiserror.workspace = true | ||
serde.workspace = true | ||
serde_yaml.workspace = true | ||
miette.workspace = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Should we use
num_errors
?