Skip to content

Commit

Permalink
feat: set a default value for category attributes for kratos profile (#…
Browse files Browse the repository at this point in the history
…1593)

Co-authored-by: Tamir David <tamirdavid@Tamirs-MacBook-Pro.local>
Co-authored-by: Amir Blum <amirgiraffe@gmail.com>
  • Loading branch information
3 people authored Oct 20, 2024
1 parent 2985c5c commit 72e7b66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli/cmd/resources/profiles/category-attributes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,13 @@ spec:
IsMatch(instrumentation_scope.name, "io.opentelemetry.elasticsearch-*")


# Add this fallback after all your trace_statements:
- set(attributes["odigos.category"], "Unknown") where attributes["odigos.category"] == nil
- set(attributes["odigos.sub_category"], "Unknown") where attributes["odigos.sub_category"] == nil
- set(attributes["odigos.transaction.type"], "Unknown") where attributes["odigos.transaction.type"] == nil



signals:
- TRACES
collectorRoles:
Expand Down

0 comments on commit 72e7b66

Please sign in to comment.