Skip to content

Commit

Permalink
Merge pull request #15 from gvolpe/update/http4s-0.20.x
Browse files Browse the repository at this point in the history
Upgrade to http4s 0.20.x
  • Loading branch information
gvolpe authored Nov 21, 2018
2 parents ea4978a + 810c0e2 commit 2c38cb9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ http4s-tracer

[![Build Status](https://travis-ci.org/gvolpe/http4s-tracer.svg?branch=master)](https://travis-ci.org/gvolpe/http4s-tracer)
[![Gitter Chat](https://badges.gitter.im/http4s-tracer/http4s-tracer.svg)](https://gitter.im/http4s-tracer/http4s-tracer)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.gvolpe/http4s-tracer_2.12.svg)](http://search.maven.org/#search%7Cga%7C1%7Chttp4s-tracer)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.gvolpe/http4s-tracer_2.12.svg)](http://search.maven.org/#search%7Cga%7C1%7Chttp4s-tracer) <a href="https://typelevel.org/cats/"><img src="https://typelevel.org/cats/img/cats-badge.svg" height="40px" align="right" alt="Cats friendly" /></a>

It provides an `HttpMiddleware` that adds a `Trace-Id` header (name can be customized) with a unique `UUID` value and gives you an implicit `TracerLog` for any `F[_]: Sync]` that also logs the http request and http response with it.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import com.github.gvolpe.tracer.instances.tracerlog._
import org.http4s._
import org.http4s.client.dsl.io._
import org.http4s.dsl.io._
import org.http4s.implicits._
import org.scalatest.FunSuite
import org.scalatest.prop.PropertyChecks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class UserRoutesSpec extends HttpRoutesSpec {
("description", "request", "expectedStatus"),
("find user by username", GET(Uri(path = "/users/gvolpe")), Status.Ok),
("not find user by username", GET(Uri(path = "/users/xxx")), Status.NotFound),
("create user", POST(Uri(path = "/users"), User(Username("xxx"))), Status.Created),
("fail to create existent user", POST(Uri(path = "/users"), User(Username("gvolpe"))), Status.Conflict)
("create user", POST(User(Username("xxx")), Uri(path = "/users")), Status.Created),
("fail to create existent user", POST(User(Username("gvolpe")), Uri(path = "/users")), Status.Conflict)
)

propertySpec(requests, routes)
Expand Down
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import sbt._
object Dependencies {

object Versions {
val catsEffect = "1.0.0"
val catsEffect = "1.1.0-M1"
val fs2 = "1.0.0"
val http4s = "0.19.0-M4"
val http4s = "0.20.0-M3"
val circe = "0.10.0"
val gfcTimeuuid = "0.0.8"

Expand All @@ -14,7 +14,7 @@ object Dependencies {
val scalaCheck = "1.13.5"

// Compiler
val kindProjector = "0.9.7"
val kindProjector = "0.9.8"
val betterMonadicFor = "0.2.4"

// Runtime
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "1.0-RC2"
version in ThisBuild := "1.0-RC3"

0 comments on commit 2c38cb9

Please sign in to comment.