Skip to content

Configure trace sampling from Tracing attribute #170

@gaelreyrol

Description

@gaelreyrol

We should be able to configure trace sampling from the #[Trace] attribute, whether it's from a command or a route.

Example:

#[Traceable(ratio: 0.1)]
#[Route('/healthcheck', methods: ['GET'])]
public function healthcheck(): Response
{
    return $this->json([
        'status' => 'ok',
    ]);
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions