Skip to content

[opentelemetry-php-contrib] is there a way to override an auto-instrumentation span name? #1618

@Azuka

Description

@Azuka

I'm currently using the Laravel auto-instrumentation hook. It currently sets the root span name in the post-process, which means for specific routes (e.g. a fallback) there is no way to override the span name:

https://github.com/opentelemetry-php/contrib-auto-laravel/blob/main/src/Hooks/Illuminate/Contracts/Http/Kernel.php#L90

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue didn't have recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions