Skip to content

OpenTelemetry: allow tweaking time-to-first-read vs. time-to-last-read #4245

Description

@roji

Our command execution currently spans the time between ExecuteReader and the reader disposal; in other words, we report time-to-last-read. We also emit a received-first-response event in the span, which provides time-to-first-read information.

While this seems like the right thing to do by default, we may want to allow users to tweak this. For example, the received-first-response event may be unneeded information that can even cost money to store (see #4243). Also, some users may want the span to correspond to time-to-first-read instead. So we could have three modes:

  1. Span corresponds to time-to-last-read, and has the received-first-response event (the default, as today).
  2. Span corresponds to time-to-last-read, no received-first-response event.
  3. Span corresponds to time-to-first-read.

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions