diff --git a/kotlin-wot-binding-websocket/src/main/kotlin/websocket/WebSocketProtocolServer.kt b/kotlin-wot-binding-websocket/src/main/kotlin/websocket/WebSocketProtocolServer.kt index a618469..8929085 100644 --- a/kotlin-wot-binding-websocket/src/main/kotlin/websocket/WebSocketProtocolServer.kt +++ b/kotlin-wot-binding-websocket/src/main/kotlin/websocket/WebSocketProtocolServer.kt @@ -35,9 +35,6 @@ import io.ktor.server.routing.* import io.ktor.server.websocket.* import io.ktor.util.reflect.* import io.ktor.websocket.* -import io.micrometer.core.instrument.binder.jvm.JvmGcMetrics -import io.micrometer.core.instrument.binder.jvm.JvmMemoryMetrics -import io.micrometer.core.instrument.binder.system.ProcessorMetrics import io.opentelemetry.api.trace.Span import io.opentelemetry.api.trace.SpanKind import io.opentelemetry.instrumentation.annotations.SpanAttribute @@ -180,6 +177,7 @@ fun Application.setupRoutingWithWebSockets(servient: Servient) { configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) } } + /* install(MicrometerMetrics) { meterBinders = listOf( JvmMemoryMetrics(), @@ -187,6 +185,7 @@ fun Application.setupRoutingWithWebSockets(servient: Servient) { ProcessorMetrics() ) } + }*/ install(WebSockets) { contentConverter = JacksonWebsocketContentConverter(JsonMapper.instance) } @@ -613,4 +612,4 @@ private fun createActionNotFound(thingId: String, correlationId : String, action detail = "Action '$actionName' not found.", instance = "${LMOSContext.url}/errors/${UUID.randomUUID()}" ) -} \ No newline at end of file +}