Skip to content

Utility of DataReaderDisposing logging/interception #24295

Closed as duplicate
Closed as duplicate

Description

@roji

RelationalDataReader has a logging/interception hook for disposing - but not for closing the reader (which happens just before). there's very little difference between a closed and disposed reader - both states are almost the same since the reader cannot be reused (unlike connection for example). Also, any I/O would very likely occur during Close, which is where we don't log the elapsed time etc.

Do we know if/how users are using this? Should we make DataReaderDisposing include Close as well, so that users can skip that via interceptors, and so that its time is logged too?

/cc @ajcvickers

Activity

  1. smitpatel commented on Mar 1, 2021

    @smitpatel
    Contributor

    You can only read out parameter values after reader is closed but before it is disposed.

  2. ajcvickers commented on Mar 10, 2021

    @ajcvickers
    Contributor

    Backlogging to add Close interception.

  3. added this to the Backlog milestone on Mar 10, 2021
  4. ajcvickers commented on Jun 21, 2022

    @ajcvickers
    Contributor

    Closing this in favor of #23535, since the same event covers both cases.

  5. removed this from the Backlog milestone on Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions