Skip to content

Conversation

@asmit27rai
Copy link

@asmit27rai asmit27rai commented Jan 14, 2026

Description

Resolves #4757

This PR removes the deprecated relay server events and replaces them with tracing::warn! logs:

  • ReservationReqAcceptFailed
  • ReservationReqDenyFailed
  • CircuitReqDenyFailed
  • CircuitReqAcceptFailed
  • CircuitReqOutboundConnectFailed

Changes

  • Removed deprecated Event variants from relay::Event
  • Replaced event emissions with structured tracing::warn! logs including peer IDs and error details
  • Updated libp2p-metrics to remove corresponding event type tracking

Remove the following deprecated relay server events and log them
internally at warn level instead:
- ReservationReqAcceptFailed
- ReservationReqDenyFailed
- CircuitReqDenyFailed
- CircuitReqAcceptFailed
- CircuitReqOutboundConnectFailed

These events represent protocol violations or connection failures that
don't require programmatic handling. Logging them at warn level allows
relay operators to monitor for potential issues without cluttering the
event API.

Closes libp2p#4757
@asmit27rai
Copy link
Author

@thomaseizinger Happy to address any feedback or make adjustments. Let me know if you'd like me to change anything!

@thomaseizinger
Copy link
Contributor

@thomaseizinger Happy to address any feedback or make adjustments. Let me know if you'd like me to change anything!

I no longer maintain this, will delegate to @jxs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

relay: don't report errors for failed requests as events but log them instead as warn!

2 participants