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

Improve API and implementation #174

Merged
merged 2 commits into from
Feb 4, 2025
Merged

Conversation

NthPortal
Copy link
Contributor

Add RouteClassifier#orElse and UriTemplateClassifier#orElse for
combining classifiers.

Add schema to Tracer creation in middlewares.

Minimise intermidiate collections created by AttributeProvider
and SpanDataProvider when combined, and add tests for correct
behaviour when combined.

Add `RouteClassifier#orElse` and `UriTemplateClassifier#orElse` for
combining classifiers.

Add schema to `Tracer` creation in middlewares.
val dsl = new Http4sDsl[F] {}
import dsl._

RouteClassifier.of[F] {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a bit sad that we need to write it by hand, but it's amazing that we can have classifiers!

Copy link
Contributor Author

@NthPortal NthPortal Jan 30, 2025

Choose a reason for hiding this comment

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

sadly, I haven't figured out a good way to do it on the client end for UriTemplateClassifier

Minimise intermidiate collections created by `AttributeProvider`
and `SpanDataProvider` when combined, and add tests for correct
behaviour when combined.
@NthPortal NthPortal merged commit fd921af into http4s:main Feb 4, 2025
11 checks passed
@NthPortal NthPortal deleted the refine/PR branch February 4, 2025 20:49
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.

3 participants