Skip to content

[Feature] Expose traceId in PHP for Enhanced Observability #11885

@warshipJian

Description

@warshipJian

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

I've been using SkyWalking for monitoring and tracing in both Java and PHP environments. One thing I noticed is that in Java, it's straightforward to use traceId for correlating logs and traces, which is super helpful for debugging and observability.

However, in PHP, there doesn't seem to be a straightforward way to access or expose the traceId within the application. This makes it a bit challenging to link logs with traces directly, which is something I believe could greatly benefit PHP developers focused on improving application observability.

Is there any chance we could see a feature in the PHP agent that allows accessing the traceId directly from the PHP code? It would be a huge boost for logging and monitoring practices in PHP applications.

Use case

No response

Related issues

No response

Are you willing to submit a pull request to implement this on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

Metadata

Metadata

Assignees

Labels

agentLanguage agent related.featureNew featurephpPHP agent related

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions