question

HariharKushwaha-4589 avatar image
1 Vote"
HariharKushwaha-4589 asked AshokPeddakotla-MSFT edited

Unable to send asynchronous Telemetry trackRequest call

Hi,

I am using PHP SDk https://github.com/microsoft/ApplicationInsights-PHP for making logs with Asynchronous calls but it doesn't sent to the Azure portal.

Below is my code.
$telemetryClient->trackRequest($endpoint_name, $endpoint_name, $starttime, $diff_millisecs, http_response_code(), true, $data);
$telemetryClient->flush( $data, true);

not-supported
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Hello @HariharKushwaha-4589

Please include any error codes or full error stack trace to better understand the issue?

Have you tried sending the telemetry in other ways, you may try quickly with the below site which helps with that?

Azure Application Insights REST API

https://dev.applicationinsights.io/apiexplorer/postMetrics?appId=DEMO_APP&apiKey=DEMO_KEY

0 Votes 0 ·

Hi @SatishBoddu-MSFT

Thanks for the replay.
1. Is Azure Application Insights REST API using async call?
2. How can I get appId and apiKey?

Please find the partial async response below.

GuzzleHttp\Promise\Promise Object
(
[state:GuzzleHttp\Promise\Promise:private] => pending
[result:GuzzleHttp\Promise\Promise:private] =>
[cancelFn:GuzzleHttp\Promise\Promise:private] => Array
(
[0] => GuzzleHttp\Promise\Promise Object
(
[state:GuzzleHttp\Promise\Promise:private] => pending
[result:GuzzleHttp\Promise\Promise:private] =>
[cancelFn:GuzzleHttp\Promise\Promise:private] => Array
(
[0] => GuzzleHttp\Promise\Promise Object
(
[state:GuzzleHttp\Promise\Promise:private] => pending
[result:GuzzleHttp\Promise\Promise:private] =>
[cancelFn:GuzzleHttp\Promise\Promise:private] => Closure Object
(
[static] => Array
(
[id] => 96
)


0 Votes 0 ·

1 Answer

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered Monalla-MSFT edited

Hello @HariharKushwaha-4589 - Thanks for reaching out.

This is not a supported product from Microsoft.

142509-image.png

Please take a look at this doc for more reference :

ApplicationInsights-PHP

Hope this helps.

If the above response helped, please feel free to "Accept as Answer" so it can be beneficial to the community.



image.png (247.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.