-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from dynatrace-oss-contrib/feat/jinja-whitesp…
…ace-control
- Loading branch information
Showing
8 changed files
with
223 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
crates/weaver_forge/whitespace_control_templates/test/expected_output/registry.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Semantic Convention Registry | ||
|
||
Url: | ||
|
||
## Attribute Groups | ||
|
||
- [attributes.jvm.memory](attribute_group/attributes_jvm_memory.md) | ||
- [registry.db](attribute_group/registry_db.md) | ||
- [registry.http](attribute_group/registry_http.md) | ||
- [registry.network](attribute_group/registry_network.md) | ||
- [server](attribute_group/server.md) | ||
- [registry.url](attribute_group/registry_url.md) | ||
- [registry.user_agent](attribute_group/registry_user_agent.md) | ||
|
||
## Events | ||
|
||
- [ios.lifecycle.events](event/ios_lifecycle_events.md) | ||
- [android.lifecycle.events](event/android_lifecycle_events.md) | ||
|
||
## Metrics | ||
|
||
- [metric.jvm.memory.used](metric/metric_jvm_memory_used.md) | ||
- [metric.jvm.memory.committed](metric/metric_jvm_memory_committed.md) | ||
- [metric.jvm.memory.limit](metric/metric_jvm_memory_limit.md) | ||
- [metric.jvm.memory.used_after_last_gc](metric/metric_jvm_memory_used_after_last_gc.md) | ||
- [metric.jvm.gc.duration](metric/metric_jvm_gc_duration.md) | ||
- [metric.jvm.thread.count](metric/metric_jvm_thread_count.md) | ||
- [metric.jvm.class.loaded](metric/metric_jvm_class_loaded.md) | ||
- [metric.jvm.class.unloaded](metric/metric_jvm_class_unloaded.md) | ||
- [metric.jvm.class.count](metric/metric_jvm_class_count.md) | ||
- [metric.jvm.cpu.count](metric/metric_jvm_cpu_count.md) | ||
- [metric.jvm.cpu.time](metric/metric_jvm_cpu_time.md) | ||
- [metric.jvm.cpu.recent_utilization](metric/metric_jvm_cpu_recent_utilization.md) | ||
|
||
## Metric Groups | ||
|
||
## Resource | ||
|
||
- [otel.scope](resource/otel_scope.md) | ||
- [otel.library](resource/otel_library.md) | ||
|
||
## Scope | ||
|
||
## Span | ||
|
||
- [db](span/db.md) | ||
- [db.mssql](span/db_mssql.md) | ||
- [db.cassandra](span/db_cassandra.md) | ||
- [db.hbase](span/db_hbase.md) | ||
- [db.couchdb](span/db_couchdb.md) | ||
- [db.redis](span/db_redis.md) | ||
- [db.mongodb](span/db_mongodb.md) | ||
- [db.elasticsearch](span/db_elasticsearch.md) | ||
- [db.sql](span/db_sql.md) | ||
- [db.cosmosdb](span/db_cosmosdb.md) | ||
- [db.tech](span/db_tech.md) |
57 changes: 57 additions & 0 deletions
57
crates/weaver_forge/whitespace_control_templates/test/registry.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Semantic Convention Registry | ||
|
||
Url:{{ registry_url }} | ||
|
||
## Attribute Groups | ||
|
||
{% for group in ctx.groups %} | ||
{% if group.type == "attribute_group" %} | ||
- [{{ group.id }}](attribute_group/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} | ||
|
||
## Events | ||
|
||
{% for group in ctx.groups %} | ||
{% if group.type == "event" %} | ||
- [{{ group.id }}](event/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} | ||
|
||
## Metrics | ||
|
||
{% for group in ctx.groups %} | ||
{% if group.type == "metric" %} | ||
- [{{ group.id }}](metric/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} | ||
|
||
## Metric Groups | ||
{% for group in ctx.groups %} | ||
{% if group.type == "metric_group" %} | ||
- [{{ group.id }}](metric_group/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} | ||
|
||
## Resource | ||
|
||
{% for group in ctx.groups %} | ||
{% if group.type == "resource" %} | ||
- [{{ group.id }}](resource/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} | ||
|
||
## Scope | ||
{% for group in ctx.groups %} | ||
{% if group.type == "scope" %} | ||
- [{{ group.id }}](scope/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} | ||
|
||
## Span | ||
|
||
{% for group in ctx.groups %} | ||
{% if group.type == "span" %} | ||
- [{{ group.id }}](span/{{ group.id | file_name }}.md) | ||
{% endif %} | ||
{% endfor %} |
22 changes: 22 additions & 0 deletions
22
crates/weaver_forge/whitespace_control_templates/test/weaver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
file_name: snake_case | ||
function_name: PascalCase | ||
arg_name: camelCase | ||
struct_name: PascalCase | ||
field_name: PascalCase | ||
|
||
type_mapping: | ||
int: int64 | ||
double: double | ||
boolean: bool | ||
string: string | ||
"int[]": "[]int64" | ||
"double[]": "[]double" | ||
"boolean[]": "[]bool" | ||
"string[]": "[]string" | ||
|
||
acronyms: ["iOS", "API", "URL"] | ||
|
||
whitespace_control: | ||
trim_blocks: true | ||
lstrip_blocks: true | ||
keep_trailing_newline: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters