Skip to content

Kamon Akka-Http PathMatcher issue #925

Open
@mladens

Description

@mladens

Scala 2.12.2
Kamon 2.1.8

After upgrading to akka-http to 10.2.2 operation names end up containing raw path instead of replacing matched sections with a special characte.

In this example we'd expect the operation name to be: /foo/bar/X{}/edit

val matcher: PathMatcher1[Option[Int]] =
  "foo" / "bar" / "X" ~ IntNumber.? / ("edit" | "create")

val route: Route =
  path(matcher) { i: Option[Int] =>
    complete(s"Matched X${i.getOrElse("")}")
  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions