forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mdatagen] Add basic telemetry test (open-telemetry#10206)
This PR adds basic tests for the telemetry generation, and fixes the documentation about value type being required for histograms. Signed-off-by: Juraci Paixão Kröhling <[email protected]>
- Loading branch information
1 parent
c37a36a
commit c95da3a
Showing
4 changed files
with
60 additions
and
11 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
13 changes: 13 additions & 0 deletions
13
cmd/mdatagen/testdata/invalid_telemetry_missing_value_type_for_histogram.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,13 @@ | ||
type: metric | ||
|
||
status: | ||
class: receiver | ||
stability: | ||
beta: [traces, logs, metrics] | ||
telemetry: | ||
metrics: | ||
sampling_decision_latency: | ||
description: Latency (in microseconds) of a given sampling policy | ||
unit: µs | ||
enabled: true | ||
histogram: |
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 @@ | ||
type: metric | ||
|
||
status: | ||
class: receiver | ||
stability: | ||
beta: [traces, logs, metrics] | ||
telemetry: | ||
metrics: | ||
sampling_decision_latency: | ||
description: Latency (in microseconds) of a given sampling policy | ||
unit: µs | ||
enabled: true | ||
histogram: | ||
value_type: int |