File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ receivers:
3232 otlp :
3333 protocols :
3434 grpc :
35+ endpoint : 0.0.0.0:4317
3536 http :
36- # Default endpoints : 0.0.0.0:4317 for gRPC and 0.0.0.0: 4318 for HTTP
37+ endpoint : 0.0.0.0:4318
3738
3839exporters :
3940 debug :
Original file line number Diff line number Diff line change 1515require 'opentelemetry/sdk'
1616require 'opentelemetry-metrics-sdk'
1717
18+ # this example manually configures the exporter, turn off automatic configuration
19+ ENV [ 'OTEL_METRICS_EXPORTER' ] = 'none'
20+
1821OpenTelemetry ::SDK . configure
1922
2023console_metric_exporter = OpenTelemetry ::SDK ::Metrics ::Export ::ConsoleMetricPullExporter . new
Original file line number Diff line number Diff line change 1818require 'opentelemetry-metrics-sdk'
1919require 'opentelemetry-exporter-otlp-metrics'
2020
21+ # this example manually configures the exporter, turn off automatic configuration
22+ ENV [ 'OTEL_METRICS_EXPORTER' ] = 'none'
23+
2124OpenTelemetry ::SDK . configure
2225
2326otlp_metric_exporter = OpenTelemetry ::Exporter ::OTLP ::Metrics ::MetricsExporter . new
You can’t perform that action at this time.
0 commit comments