Skip to content

Commit

Permalink
stream: update stream configuration to include/exclude
Browse files Browse the repository at this point in the history
This follows open-telemetry/opentelemetry-specification#4188 to add support
to exclude attribute keys from stream configuration.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
codeboten committed Sep 9, 2024
1 parent 05a15a8 commit 06bc2c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 2 additions & 0 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ meter_provider:
included:
- key1
- key2
excluded:
- key3

# Configure text map context propagators.
#
Expand Down
12 changes: 0 additions & 12 deletions schema/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,6 @@
}
}
},
"Include": {
"type": "object",
"additionalProperties": false,
"properties": {
"included": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Otlp": {
"type": ["object", "null"],
"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 @@ -302,7 +302,7 @@
}
},
"attribute_keys": {
"$ref": "common.json#/$defs/Include"
"$ref": "common.json#/$defs/IncludeExclude"
}
}
}
Expand Down

0 comments on commit 06bc2c8

Please sign in to comment.