Skip to content

v4.0.1

Choose a tag to compare

@GianfriAur GianfriAur released this 13 Apr 07:45
· 68 commits to master since this release
7dac3d2

[v4.0.1] - 2026-03-30

Added

  • Comprehensive debug logging for all OPC UA service calls. Every request sent to and response received from the server is now logged at DEBUG level via PSR-3, enabling full observability of the client–server communication. Previously, only a few operations (connection lifecycle, type discovery, retry logic) were logged. The following traits now include request/response logging:
    • ManagesBrowseTraitGetEndpoints, Browse, BrowseNext.
    • ManagesHandshakeTraitHEL/ACK handshake, discovery GetEndpoints, discovery OPN.
    • ManagesHistoryTraitHistoryReadRaw, HistoryReadProcessed, HistoryReadAtTime.
    • ManagesSecureChannelTraitOpenSecureChannel (with and without security), CloseSecureChannel.
    • ManagesSessionTraitCreateSession, ActivateSession, CloseSession.
    • ManagesSubscriptionsTraitCreateSubscription, CreateMonitoredItems, CreateEventMonitoredItem, DeleteMonitoredItems, ModifyMonitoredItems, SetTriggering, DeleteSubscription, Publish, TransferSubscriptions, Republish.
    • ManagesTranslateBrowsePathTraitTranslateBrowsePaths.
    • ManagesReadWriteTraitRead, ReadMulti, Write, WriteMulti (including batched), Call.
  • Each log entry includes contextual data (NodeId, subscription ID, item count, status codes, channel ID, etc.) for effective filtering and debugging.
  • endpoint and session_id in every log context. All log messages now include endpoint (the connected OPC UA endpoint URL) and session_id (the authentication token) in the PSR-3 context array. These fields are not part of the log message text, but are available for structured logging pipelines (e.g. Monolog processors for Graylog/ELK). A new logContext() helper method in Client centralizes this enrichment.