dd-trace-php icon indicating copy to clipboard operation
dd-trace-php copied to clipboard

Laravel6 support

Open jacksuzuki opened this issue 5 years ago • 16 comments

Everything went well when my apps used Laravel 5.8; but after we upgraded them to Laravel 6, no logs are shown in Datadog APM dashboard.

jacksuzuki avatar Sep 11 '19 05:09 jacksuzuki

Hi @jacksuzuki, thanks for reporting this. Just to make sure:

no logs are shown in Datadog APM dashboard

  1. Do you have log collection enabled and logs are not appearing anymore?
  2. Or by logs you mean traces?

In the first case how is logging configured in both laravel and our agent? In the second case I am surprised as you should see at least the default web request tracing. So in this latter case I'll need a few more info to look into this.

On top of that, Laravel 6 is not yet supported, but you should already see a lot of traces until that moment.

labbati avatar Sep 11 '19 08:09 labbati

Hey, @jacksuzuki, just following up. To clarify, you aren't seeing any spans or traces at all on Laravel 6? Laravel 6 isn't supported, so it's not surprising that Laravel related spans are missing, but we would expect to see generic traces for the root span (e.g. web.request) as well as pdo or other database related spans.

morrisonlevi avatar Oct 01 '19 17:10 morrisonlevi

I have not updated to Laravel 6 yet, but this is one (of many) things I am waiting for official support to drop. Laravel 6.3 was released last week. Is there a tentative timeline on the php tracer roadmap for Laravel 6.x support?

Thanks!

brandonburkett avatar Oct 28 '19 13:10 brandonburkett

Hi @jacksuzuki, while Laravel 6 is in our radar, at the moment we cannot provide any detailed ETA as we are focusing on other features. As @morrisonlevi correctly said, though, you should have already a pretty decent tracing support using our generic web framework (active by default).

I'd suggest to also set the env DD_TRACE_URL_AS_RESOURCE_NAMES_ENABLED=true in order to have a nicer separation by url. (Note, we are working to enable by default this latest feature as part of the current sprint).

labbati avatar Nov 05 '19 10:11 labbati

Same issue, don't see any relevant data in APM of PHP of our application, only PDO, CURL, GRUZZLE.

But not a single PHP function or anything laravel related.

HSken avatar Dec 06 '19 13:12 HSken

Laravel is at v6.6.x now, is there an updated ETA on where this is on the php tracer roadmap? It is one of the reasons I am still on 5.8.x.

brandonburkett avatar Dec 06 '19 14:12 brandonburkett

We just upgraded to Laravel 6 and we ran into the same issue as well. With Laravel 7 coming out next month, shouldn't this issue be resolved by now? Wondering what we need to do to fix this so we can continue using Datadog. Otherwise, we have to look into other services.

snags88 avatar Jan 21 '20 20:01 snags88

Hi @snags88, this PR https://github.com/DataDog/dd-trace-php/pull/700 has been merged and it supports L6+. This will released early next week.

labbati avatar Jan 24 '20 13:01 labbati

@labbati Awesome, thanks so much!

snags88 avatar Jan 25 '20 01:01 snags88

@labbati confirming it is live as I plan to upgrade to laravel 6 this week.

brandonburkett avatar Feb 10 '20 21:02 brandonburkett

@brandonburkett just to make sure, you are confirming you tested it and it works fine for you?

labbati avatar Feb 11 '20 09:02 labbati

@labbati No, I am in the process of updating (to Laravel 6) and the updated tracer is the last on my list to update. I wanted to confirm it was released (this issue is still open).

brandonburkett avatar Feb 11 '20 17:02 brandonburkett

Thanks for clarifying. Laravel 6 works but I leave this open as we want to extract even more internals useful info from it.

Il mar 11 feb 2020, 18:40 Brandon Burkett [email protected] ha scritto:

No, I am in the process of updating (to Laravel 6) and the updated tracer is the last on my list to update. I wanted to confirm it was released (this issue is still open).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DataDog/dd-trace-php/issues/567?email_source=notifications&email_token=AAWQZIFITY5E7NFOKYE6Q5DRCLPHXA5CNFSM4IVPOSTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELNLYJA#issuecomment-584760356, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWQZIDXQHT76ZL2LEBUL2TRCLPHXANCNFSM4IVPOSTA .

labbati avatar Feb 11 '20 20:02 labbati

@labbati Things are working well in our staging env (0.39.2-1). We are able to see requests (including route names from laravel), elastic search, guzzle, etc.

brandonburkett avatar Feb 12 '20 22:02 brandonburkett

Last of my feedback, been running in production now for over a week and has been just as good as Laravel v5.8 support. This page can probably be updated to mention Laravel 6.x support: https://docs.datadoghq.com/tracing/setup/php/

brandonburkett avatar Feb 20 '20 17:02 brandonburkett

Just updated to laravel 6 and found we could not get laravel.user.

https://github.com/DataDog/dd-trace-php/blob/1c449b7e47ec922643082d8d9fdd1dff77b66f88/src/DDTrace/Integrations/Laravel/LaravelIntegration.php#L66-L77

junmajeff avatar Apr 30 '20 08:04 junmajeff

We've been supporting Laravel 6 for over 3 years now. Closing this issue thus. Please create a new issue if any functionality is missing.

bwoebi avatar May 12 '23 11:05 bwoebi