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
// The main program - start the server on port 8080
60
63
valprogram=for
61
64
_ <-Console.printLine("Starting server on http://localhost:8080")
@@ -91,59 +94,52 @@ object ZIOpenTelemetryExample extends ZIOApp with ZIOpenTelemetry("zio-observabi
91
94
*/
92
95
overridedefrun=
93
96
program.provideSome[Environment](
94
-
95
97
Server.default,
96
98
97
99
// This layers provides sample custom metric, which will be visible in the OpenTelemetry collector and can be used to verify that the metrics are working.
98
-
TickCounter.tickRefLayer,
99
-
TickCounter.tickCounterLayer,
100
+
TickCounter.tickRefLayer,
101
+
TickCounter.tickCounterLayer,
100
102
// This layer provides the OpenTelemetry Metrics service.
101
103
// Can be used to create custom metrics.
102
104
// Note this will be different Meter instance than the one used by the ZIO runtime or Tapir.
103
105
otel4zMetrics(resourceName),
104
106
// This layer publishes ZIO logs to OpenTelemetry, which will be correlated with traces and metrics.
105
107
otel4zLogging(resourceName),
106
-
// This layer provides the OpenTelemetry Tracing service,
108
+
// This layer provides the OpenTelemetry Tracing service,
107
109
// which is used to create spans for incoming requests and other operations.
108
-
otel4zTracing(resourceName),
110
+
otel4zTracing(resourceName)
109
111
110
112
// This layer provides the OpenTelemetry Runtime Metrics service, which is used to expose ZIO runtime metrics.
111
113
// Scope.default,
112
114
// RuntimeMetrics.otel4zRuntimeTelemetry
113
115
114
-
)
115
-
116
-
117
-
116
+
)
118
117
119
118
/** The server options for the ZIOpenTelemetry trait.
120
-
*
121
-
* This is the server options that will be used to run the ZIO application, hence provided by bootstrap. It includes the OpenTelemetry
122
-
* instance and the ContextStorage.
123
-
*/
119
+
*
120
+
* This is the server options that will be used to run the ZIO application, hence provided by bootstrap. It includes the OpenTelemetry
0 commit comments