Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…y-configuration into generate-descriptions
  • Loading branch information
jack-berg committed Sep 19, 2024
2 parents 0bede24 + e21ffdb commit fc10dae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
5 changes: 4 additions & 1 deletion examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ meter_provider:
# Configure resource attributes to be included.
included:
- "service*"
# Configure resource attributes to be excluded.
# Configure resource attributes to be excluded, in this example attribute service.attr1. Applies after .with_resource_constant_labels.included (i.e. excluded has higher priority than included).
excluded:
- "service.attr1"
# Configure metric producers.
Expand Down Expand Up @@ -205,6 +205,9 @@ meter_provider:
included:
- key1
- key2
# Configure list of attribute keys that are excluded in the resulting stream(s), in this example attribute key3. Applies after .attribute_keys.included (i.e. excluded has higher priority than included).
excluded:
- key3

# Configure text map context propagators.
propagator:
Expand Down
12 changes: 0 additions & 12 deletions schema/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@
}
}
},
"Include": {
"type": "object",
"additionalProperties": false,
"properties": {
"included": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"NameStringValuePair": {
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion schema/meter_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
}
},
"attribute_keys": {
"$ref": "common.json#/$defs/Include"
"$ref": "common.json#/$defs/IncludeExclude"
}
}
}
Expand Down

0 comments on commit fc10dae

Please sign in to comment.