Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Telemetry header #208

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

feat: Telemetry header #208

wants to merge 17 commits into from

Conversation

nicklasl
Copy link
Member

@nicklasl nicklasl commented Nov 19, 2024

This PR appends resolve latency telemetry on the header as well as sets the API for adding other type of telemetry.

@nicklasl nicklasl force-pushed the telemetry-header branch 3 times, most recently from e9f7081 to ac1590a Compare November 21, 2024 13:25
@@ -275,6 +297,25 @@ export class CachingFlagResolverClient implements FlagResolverClient {
}
}

export function withTelemetryData(
fetchImplementation: (request: Request) => Promise<Response>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. now that we have these two orthogonal fetch modifiers, maybe it would be nicer to pass a FetchBuilder to this function and the other. It's a little nicer than composing them.. wdyt?

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.

2 participants