Skip to content

[Discussion] How to handle creating spans when PHP Generators are involved? #1444

Closed
@dciprian-petrisor

Description

Hi,

Sorry for posting this as an issue, don't know where else to ask.
I am using open-telemetry/opentelemetry-auto-psr16 to automatically create spans for CacheInterface calls.
Among the hooked-into methods, there are some that return iterable via yield keyword (Generators) (e.g. getMultiple).

This results in one span for each yield call, resulting in very long traces.

Is there any way that these can be grouped or deduplicated?
Do maintainers consider this an issue?

Thank you!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions