Skip to content
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

Infrastructure to support backward-compatibility check #257

Merged
merged 40 commits into from
Jul 29, 2024
Merged
Changes from 3 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cb9cd58
feat(forge): Support hierarchical weaver config
lquerel Jul 6, 2024
b8faa77
feat(forge): Test override_with
lquerel Jul 8, 2024
da7b6c7
feat(forge): Implement better UX for templates and config.
lquerel Jul 10, 2024
b6bb5ef
chore(forge): Fix a unit test.
lquerel Jul 10, 2024
e818435
feat(forge): Support multiple paths to init a WeaverConfig with overr…
lquerel Jul 11, 2024
fdd51cc
feat(cli): Reintroduce target concept
lquerel Jul 11, 2024
ef59887
feat(cli): Introduce --config parameter in weaver registry generate
lquerel Jul 11, 2024
c55f85b
Merge branch 'main' into hierarchical-config
lquerel Jul 11, 2024
f9bf773
doc(forge): Document the organization and resolution of config files
lquerel Jul 11, 2024
d42a61a
doc(forge): Document the organization and resolution of config files
lquerel Jul 11, 2024
ec39d09
Merge branch 'main' into hierarchical-config
lquerel Jul 11, 2024
add9388
feat(forge): Improve WeaverConfig and TemplateEngine public APIs
lquerel Jul 15, 2024
0f44a4c
Merge remote-tracking branch 'origin/hierarchical-config' into hierar…
lquerel Jul 15, 2024
582516b
feat(forge): Remove FileContent from the public API
lquerel Jul 15, 2024
78d4f40
feat(forge): Create constants for Jinja syntax delimiters
lquerel Jul 15, 2024
399030b
Merge branch 'lquerel-hierarchical-config'
lquerel Jul 15, 2024
0f2d7c7
chore(forge): Remove unused filters function_name, struct_name, ...
lquerel Jul 16, 2024
d93a9c8
chore(build): Merge with main and bump weaver version
lquerel Jul 16, 2024
1e54041
chore(build): Merge with main and bump weaver version
lquerel Jul 16, 2024
35a405b
Merge branch 'main' of https://github.com/lquerel/otel-weaver
lquerel Jul 16, 2024
e5504cf
Merge remote-tracking branch 'upstream/main'
lquerel Jul 16, 2024
0749edd
Merge branch 'open-telemetry:main' into main
lquerel Jul 16, 2024
49197f6
Merge branch 'open-telemetry:main' into main
lquerel Jul 17, 2024
35e8f75
Merge branch 'open-telemetry:main' into main
lquerel Jul 22, 2024
e9cabd9
Merge branch 'open-telemetry:main' into main
lquerel Jul 23, 2024
1b39242
feat(registry): Unify RegistryPath
lquerel Jul 23, 2024
0ed6b11
feat(CLI): Add --baseline-registry in `weaver registry check` command
lquerel Jul 23, 2024
a0de53a
feat(cache): Add partial impl of SemConvRegistryRepo
lquerel Jul 24, 2024
52cae7f
feat(cache): Implement and test SemConvRegistryRepo::LocalArchive
lquerel Jul 24, 2024
91900f1
feat(cache): Implement and test SemConvRegistryRepo::RemoteArchive
lquerel Jul 25, 2024
5ff29f3
chore(dep): Optimize dependencies to the opentelemetry crate
lquerel Jul 25, 2024
cce4e0f
feat(registry): Replace weaver Cache by RegistryRepo
lquerel Jul 25, 2024
f8f69ff
feat(registry): Load baseline registry in the check command
lquerel Jul 25, 2024
63f9a8b
feat(rego): Add defaults/rego/semconv.rego rules and functions
lquerel Jul 26, 2024
27e8cc2
feat(checker): Add support for policies on multiple registries
lquerel Jul 26, 2024
c157e66
chore(build): Fix typos
lquerel Jul 27, 2024
72a79fa
chore(build): Fix typos
lquerel Jul 27, 2024
e89e27d
chore(log): Improve logging
lquerel Jul 28, 2024
0f346b9
chore(build): Fix rustfmt and docs linter issues
lquerel Jul 29, 2024
59cb518
chore(pr): Improve code based on Josh's feedback
lquerel Jul 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/weaver_forge/README.md
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ For example, the following snippet redefine the name of the file that will be
produced from the template:

```jinja
{%- set file_name = group.id | file_name -%}
{%- set file_name = group.id | snake_case -%}
{{- template.set_file_name("span/" ~ file_name ~ ".md") -}}
```

2 changes: 1 addition & 1 deletion crates/weaver_forge/overloaded-templates/test/group.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("group/" ~ file_name ~ ".md") -}}

# Overloaded Group `{{ ctx.id }}` ({{ ctx.type }})
2 changes: 1 addition & 1 deletion crates/weaver_forge/templates/test/attribute_group.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("attribute_group/" ~ file_name ~ ".md") -}}

## Group `{{ ctx.id | split_id | list | join("_") }}` ({{ ctx.type }})
2 changes: 1 addition & 1 deletion crates/weaver_forge/templates/test/event.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("event/" ~ file_name ~ ".md") -}}

# Group `{{ ctx.id }}` ({{ ctx.type }})
2 changes: 1 addition & 1 deletion crates/weaver_forge/templates/test/group.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("group/" ~ file_name ~ ".md") -}}

# Group `{{ ctx.id }}` ({{ ctx.type }})
2 changes: 1 addition & 1 deletion crates/weaver_forge/templates/test/metric.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("metric/" ~ file_name ~ ".md") -}}

## Group `{{ ctx.id }}` ({{ ctx.type }})
14 changes: 7 additions & 7 deletions crates/weaver_forge/templates/test/registry.md
Original file line number Diff line number Diff line change
@@ -5,48 +5,48 @@ Url: {{ registry_url }}
# Attribute Groups
{% for group in ctx.groups -%}
{%- if group.type == "attribute_group" %}
- [{{ group.id }}](attribute_group/{{ group.id | file_name }}.md)
- [{{ group.id }}](attribute_group/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}

# Events
{% for group in ctx.groups -%}
{%- if group.type == "event" %}
- [{{ group.id }}](event/{{ group.id | file_name }}.md)
- [{{ group.id }}](event/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}

# Metrics
{% for group in ctx.groups -%}
{%- if group.type == "metric" %}
- [{{ group.id }}](metric/{{ group.id | file_name }}.md)
- [{{ group.id }}](metric/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}

# Metric Groups
{% for group in ctx.groups -%}
{%- if group.type == "metric_group" %}
- [{{ group.id }}](metric_group/{{ group.id | file_name }}.md)
- [{{ group.id }}](metric_group/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}

# Resource
{% for group in ctx.groups -%}
{%- if group.type == "resource" %}
- [{{ group.id }}](resource/{{ group.id | file_name }}.md)
- [{{ group.id }}](resource/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}

# Scope
{% for group in ctx.groups -%}
{%- if group.type == "scope" %}
- [{{ group.id }}](scope/{{ group.id | file_name }}.md)
- [{{ group.id }}](scope/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}

# Span
{% for group in ctx.groups -%}
{%- if group.type == "span" %}
- [{{ group.id }}](span/{{ group.id | file_name }}.md)
- [{{ group.id }}](span/{{ group.id | snake_case }}.md)
{%- endif %}
{%- endfor %}
2 changes: 1 addition & 1 deletion crates/weaver_forge/templates/test/resource.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("resource/" ~ file_name ~ ".md") -}}

## Group `{{ ctx.id }}` ({{ ctx.type }})
2 changes: 1 addition & 1 deletion crates/weaver_forge/templates/test/span.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- set file_name = ctx.id | file_name -%}
{%- set file_name = ctx.id | snake_case -%}
{{- template.set_file_name("span/" ~ file_name ~ ".md") -}}

## Group `{{ ctx.id }}` ({{ ctx.type }})
14 changes: 7 additions & 7 deletions crates/weaver_forge/templates/whitespace_control/registry.md
Original file line number Diff line number Diff line change
@@ -6,52 +6,52 @@ Url:{{ registry_url }}

{% for group in ctx.groups %}
{% if group.type == "attribute_group" %}
- [{{ group.id }}](attribute_group/{{ group.id | file_name }}.md)
- [{{ group.id }}](attribute_group/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}

## Events

{% for group in ctx.groups %}
{% if group.type == "event" %}
- [{{ group.id }}](event/{{ group.id | file_name }}.md)
- [{{ group.id }}](event/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}

## Metrics

{% for group in ctx.groups %}
{% if group.type == "metric" %}
- [{{ group.id }}](metric/{{ group.id | file_name }}.md)
- [{{ group.id }}](metric/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}

## Metric Groups
{% for group in ctx.groups %}
{% if group.type == "metric_group" %}
- [{{ group.id }}](metric_group/{{ group.id | file_name }}.md)
- [{{ group.id }}](metric_group/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}

## Resource

{% for group in ctx.groups %}
{% if group.type == "resource" %}
- [{{ group.id }}](resource/{{ group.id | file_name }}.md)
- [{{ group.id }}](resource/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}

## Scope
{% for group in ctx.groups %}
{% if group.type == "scope" %}
- [{{ group.id }}](scope/{{ group.id | file_name }}.md)
- [{{ group.id }}](scope/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}

## Span

{% for group in ctx.groups %}
{% if group.type == "span" %}
- [{{ group.id }}](span/{{ group.id | file_name }}.md)
- [{{ group.id }}](span/{{ group.id | snake_case }}.md)
{% endif %}
{% endfor %}