-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telemetry handler experience #1209
Comments
For context, our telemetry handler currently adds 2 headers to requests: The current dev experience of customising client request ID when using service libraries: $telemetryOption = new GraphTelemetryOption();
$telemetryOption->setClientRequestId('custom id');
$requestConfig = new UsersRequestBuilderGetRequestConfiguration();
$requestConfig->options = [$telemetryOption];
$response = $graphServiceClient->users()->get($requestConfig)->wait(); Dev exp. when using Graph core only: $telemetryOption = new GraphTelemetryOption();
$telemetryOption->setClientRequestId('custom id');
$guzzleClient = GraphClientFactory::setTelemetryOption($telemetryOption)::create();
$response = $guzzleClient->get('/users'); Some improvements/gaps in the dev experience:
|
@isvargasmsft the 2nd requirement isn't clear to me. Kindly clarify. |
@baywet I understand you have more context on these 2 requests, is that right? These came from Seb. |
@Ndiritu Open Telemetry is not yet implemented in PHP as far as I know, correct? |
Ah, didn't know we're referring to that. |
right, so the second requirement can only be implemented when the tracing work is done. I suggest that you only implement the first now, and leave a note on the issue capturing tracing for the second. |
Thank you very much @baywet |
here is the related issue I'm referring to microsoft/kiota#1871 |
2 things to address:
The text was updated successfully, but these errors were encountered: