fix: 移除mqtt连接时的链路追踪 (#428)

This commit is contained in:
老周 2023-10-19 11:13:13 +08:00 committed by GitHub
parent 04c1071fb4
commit 7f69c8f487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -130,13 +130,7 @@ class MqttServerDeviceGateway extends AbstractDeviceGateway {
.onErrorResume(err -> {
log.error(err.getMessage(), err);
return Mono.empty();
})
.as(MonoTracer
.create(SpanName.connection(connection.getClientId()),
builder -> {
builder.setAttribute(clientId, connection.getClientId());
builder.setAttribute(SpanKey.address, connection.getClientAddress().toString());
})),
}),
Integer.MAX_VALUE)
.subscribe();