You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I'm trying to describe in CUE the structure for OpenTelemetry but I am a bit at of a question mark of how to do it.
Below you see a example of how the config can be, the top level structure is
receivers:
opencensus:
cors_allowed_origins:
- http://test.com
# Origins can have wildcards with *, use * by itself to match any origin.
- https://*.example.com
prometheus: {}
prometheus/1: {}
exporters:
jaeger: {}
zipkin: {}
prometheus
prometheus/1: {}
service:
extensions: ["pprof", "zpages"]
pipelines:
traces:
receivers: ["zipkin", "jaeger"]
exporters: ["zipkin"]
metrics:
receivers: ["prometheus"]
exporters: ["prometheus"]
metrics/1:
receivers: ["prometheus", "prometheus/1"]
exporters: ["prometheus/1"]
So then I thought of defining a map of {string: #ReceiverEnum} kind of but then I can't enforce the receiver / exporter name etc that OTEL relies on since it doesnt define the type | component type based on a attribute inside the config but that falls short of validating the component like receiver | exporter name.
I've not done all of the exporters etc but the below is examples
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Originally opened by @ekarlso in cuelang/cue#580
Hi all, I'm trying to describe in CUE the structure for OpenTelemetry but I am a bit at of a question mark of how to do it.
Below you see a example of how the config can be, the top level structure is
So then I thought of defining a map of
{string: #ReceiverEnum}
kind of but then I can't enforce the receiver / exporter name etc that OTEL relies on since it doesnt define the type | component type based on a attribute inside the config but that falls short of validating the component like receiver | exporter name.I've not done all of the exporters etc but the below is examples
Beta Was this translation helpful? Give feedback.
All reactions