open-telemetry / opentelemetry-configuration

JSON Schema definitions for OpenTelemetry file configuration
Apache License 2.0
32 stars 17 forks source link

Confirm yaml anchors can be extended #19

Open codeboten opened 1 year ago

codeboten commented 1 year ago

Currently in the example config, the following section exists:

https://github.com/open-telemetry/opentelemetry-configuration/blob/362b23ec9bb61537e6479a9546d7e8f8a388ec81/kitchen-sink-example.yaml#L95-L103

This configuration is intended to pull in the otlp-exporter configuration as an anchor, then add temporality_preference and default_histogram_aggregation to its configuration. However, I think those are currently applied to the exporter configuration and not the otlp-exporter.

Is this ok? I was under the impression that we would want to apply those to the otlp exporter block, rather than the exporter block.

jack-berg commented 1 year ago

I believe that should be fine.

jack-berg commented 1 year ago

In java we upgraded to the successor of a popular yaml parsing library and support for the merge symbol ("<<:") was removed! Based on comments on issues in the library, it sounds like supporting merge is optional in YAML 1.2.

Here's an comment where I talk about this a bit more.

jack-berg commented 3 weeks ago

If there is no YAML 1.2 replacement for the <<: syntax, let's delete the anchors example.