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:
32
32
otlp :
33
33
protocols :
34
34
grpc :
35
+ endpoint : 0.0.0.0:4317
35
36
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
37
38
38
39
exporters :
39
40
debug :
Original file line number Diff line number Diff line change 15
15
require 'opentelemetry/sdk'
16
16
require 'opentelemetry-metrics-sdk'
17
17
18
+ # this example manually configures the exporter, turn off automatic configuration
19
+ ENV [ 'OTEL_METRICS_EXPORTER' ] = 'none'
20
+
18
21
OpenTelemetry ::SDK . configure
19
22
20
23
console_metric_exporter = OpenTelemetry ::SDK ::Metrics ::Export ::ConsoleMetricPullExporter . new
Original file line number Diff line number Diff line change 18
18
require 'opentelemetry-metrics-sdk'
19
19
require 'opentelemetry-exporter-otlp-metrics'
20
20
21
+ # this example manually configures the exporter, turn off automatic configuration
22
+ ENV [ 'OTEL_METRICS_EXPORTER' ] = 'none'
23
+
21
24
OpenTelemetry ::SDK . configure
22
25
23
26
otlp_metric_exporter = OpenTelemetry ::Exporter ::OTLP ::Metrics ::MetricsExporter . new
You can’t perform that action at this time.
0 commit comments