![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
pl.datart:http4s-timer-newrelic_3.0.0-RC1
Advanced tools
This adds timing capability to http4s, with a possible concrete implementation for New Relic
Add to your library dependencies:
"pl.datart" %% "http4s-timer-newrelic" % <version>
You should have the New Relic agent installed, with custom annotations enabled.
If your initial version looks like:
val routes = HttpRoutes[IO] {
case GET -> Root / "hello" / name =>
Ok(Json.obj("message" -> Json.fromString(s"Hello, ${name}")))
}
then this should be modified to:
import pl.datart.http4s.timer._
import pl.datart.http4s.timer.newrelic._
val routes = TimedRoutes[IO]("my_routes") {
case GET -> Root / "hello" / name =>
"hello/:name" ->
Ok(Json.obj("message" -> Json.fromString(s"Hello, ${name}")))
}
The body of each partial function now returns a tuple of path name, and the contents of the resulting HTTP response. The path name cannot be taken directly from the requested path, as many paths vary in such things like user ID, but these should not be included in the path sent to monitoring.
Similarly, you should modify any AuthedRoutes
to use TimedAuthedRoutes
.
The core library is dependent on "org.http4s" %% "http4s-core" % "1.0.0-M10"
.
The newrelic library is also dependent on "com.newrelic.agent.java" % "newrelic-api" % "6.3.0"
This repo is a fork of the original library from @fiadliel available at https://github.com/fiadliel/http4s-timer
FAQs
http4s-timer-newrelic
We found that pl.datart:http4s-timer-newrelic_3.0.0-RC1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.