-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-constraints
- Loading branch information
Showing
24 changed files
with
37 additions
and
319 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
22 changes: 0 additions & 22 deletions
22
semantic-conventions/src/opentelemetry/semconv/model/unit_member.py
This file was deleted.
Oops, something went wrong.
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
23 changes: 0 additions & 23 deletions
23
semantic-conventions/src/tests/data/jinja/metrics/expected.java
This file was deleted.
Oops, something went wrong.
31 changes: 14 additions & 17 deletions
31
semantic-conventions/src/tests/data/jinja/metrics/expected_trim_whitespace_enabled.java
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 |
---|---|---|
@@ -1,22 +1,19 @@ | ||
package io.opentelemetry.instrumentation.api.metric; | ||
|
||
class Units { | ||
|
||
/** | ||
* Use this unit for Metric Instruments recording values | ||
* representing fraction of a total. | ||
**/ | ||
public static final String PERCENT = "%"; | ||
|
||
class AllMetrics { | ||
/** | ||
* Use this unit for Metric Instruments recording values | ||
* representing time. | ||
**/ | ||
public static final String NANOSECOND = "NS"; | ||
* first metric description | ||
* Unit: {one} | ||
* Instrument: counter | ||
* Experimental: False | ||
*/ | ||
public static final String FIRST_METRIC = "first.metric"; | ||
|
||
/** | ||
* Use this unit for Metric Instruments recording values | ||
* representing connections. | ||
**/ | ||
public static final String CONNECTIONS = "{connections}"; | ||
} | ||
* second metric description | ||
* Unit: s | ||
* Instrument: histogram | ||
* Experimental: True | ||
*/ | ||
public static final String SECOND_GROUP_METRIC = "second_group.metric"; | ||
} |
14 changes: 14 additions & 0 deletions
14
semantic-conventions/src/tests/data/jinja/metrics/metrics_template_trim_whitespace_enabled
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,14 @@ | ||
package io.opentelemetry.instrumentation.api.metric; | ||
|
||
class AllMetrics { | ||
{%- for metric in metrics %} | ||
|
||
/** | ||
* {{metric.brief | to_doc_brief}} | ||
* Unit: {{ metric.unit }} | ||
* Instrument: {{ metric.instrument }} | ||
* Experimental: {{ metric | is_experimental }} | ||
*/ | ||
public static final String {{ metric.metric_name | to_const_name }} = "{{metric.metric_name}}"; | ||
{% endfor %} | ||
} |
11 changes: 0 additions & 11 deletions
11
semantic-conventions/src/tests/data/jinja/metrics/units_template
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
semantic-conventions/src/tests/data/jinja/metrics/units_template_trim_whitespace_enabled
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
semantic-conventions/src/tests/data/markdown/metrics_unit/expected.md
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
semantic-conventions/src/tests/data/markdown/metrics_unit/input.md
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
semantic-conventions/src/tests/data/markdown/scope/expected.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
semantic-conventions/src/tests/data/markdown/scope/scope.yaml
This file was deleted.
Oops, something went wrong.
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
14 changes: 0 additions & 14 deletions
14
semantic-conventions/src/tests/data/yaml/metrics/units.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
semantic-conventions/src/tests/data/yaml/metrics/units_bad_with_attributes.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.