That should be okay, thanks for the pointer.
I’m able to export spans to otel-collector, however, metrics are also being logged and exported. I have the following cluster settings:
"telemetry.feature.metrics.enabled": "false",
"telemetry.feature.tracer.enabled": "true",
"telemetry.otel.metrics.exporter.class": "io.opentelemetry.exporter.logging.LoggingMetricExporter",
"telemetry.otel.tracer.span.exporter.class": "io.opentelemetry.exporter.otlp.trace.OtlpGrpcSpanExporter",
My expectation based on these settings is:
- No metrics exported through LoggingMetricExporter since telemetry.feature.metrics.enabled is false.
- No metrics exported to otel-collector, only traces.
Are they correct? What settings limit otel-collector to traces/spans only?
Sample metrics exporter logs below:
2024-04-10 13:09:40,020 INFO [2024-04-10T13:09:39,975][INFO ][i.o.e.l.LoggingMetricExporter] [Umang-Sharan] Received a collection of 2 metrics for export.
2024-04-10 13:09:40,021 INFO [2024-04-10T13:09:39,976][INFO ][i.o.e.l.LoggingMetricExporter] [Umang-Sharan] metric: ImmutableMetricData{resource=Resource{schemaUrl=null, attributes={service.name="OpenSearch"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.exporters.otlp-grpc, version=null, schemaUrl=null, attributes={}}, name=otlp.exporter.exported, description=, unit=, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1712778279966623000, epochNanos=1712779779975091000, attributes={success=false, type="span"}, value=3, exemplars=[]}, ImmutableLongPointData{startEpochNanos=1712778279966623000, epochNanos=1712779779975091000, attributes={success=true, type="span"}, value=12, exemplars=[]}], monotonic=true, aggregationTemporality=CUMULATIVE}}
2024-04-10 13:09:40,021 INFO [2024-04-10T13:09:39,976][INFO ][i.o.e.l.LoggingMetricExporter] [Umang-Sharan] metric: ImmutableMetricData{resource=Resource{schemaUrl=null, attributes={service.name="OpenSearch"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.exporters.otlp-grpc, version=null, schemaUrl=null, attributes={}}, name=otlp.exporter.seen, description=, unit=, type=LONG_SUM, data=ImmutableSumData{points=[ImmutableLongPointData{startEpochNanos=1712778279966623000, epochNanos=1712779779975091000, attributes={type="span"}, value=15, exemplars=[]}], monotonic=true, aggregationTemporality=CUMULATIVE}}