applyPeer method

void applyPeer({
  1. String? address,
  2. int? port,
})

Implementation

void applyPeer({String? address, int? port}) {
  if (address != null && address.isNotEmpty && address != 'UNKNOWN') {
    span.setAttribute(Attribute.fromString('network.peer.address', address));
  }
  span.setAttribute(Attribute.fromInt('network.peer.port', port ?? url.port));
}