-
Couldn't load subscription status.
- Fork 117
Drop support for PHP 7.4 and 8.0, introduce support for PHP 8.4, fix semconv deprecations #315
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
Changes from 1 commit
f8f40cb
1eb4272
2a15d9d
66d1a18
8a290be
3c997b1
a5d0f88
8aa437e
475693e
b226c25
2845809
e0804bb
4d37b4d
0ae1898
70a80c9
17509ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |
| use Illuminate\Log\LogManager; | ||
| use OpenTelemetry\API\Instrumentation\CachedInstrumentation; | ||
| use OpenTelemetry\API\Logs\LogRecord; | ||
| use OpenTelemetry\API\Logs\Map\Psr3; | ||
| use OpenTelemetry\API\Logs\Severity; | ||
| use TypeError; | ||
|
|
||
| class LogWatcher extends Watcher | ||
|
|
@@ -58,7 +58,7 @@ public function recordLog(MessageLogged $log): void | |
|
|
||
| $record = (new LogRecord($log->message)) | ||
| ->setSeverityText($log->level) | ||
| ->setSeverityNumber(Psr3::severityNumber($log->level)) | ||
| ->setSeverityNumber(Severity::fromPsr3($log->level)) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ChrisLightfootWild I think this requires API 1.1.0 and therefore dropping 8.0 support - how does that sound? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I've got the same dependency bumps in #269 so that's fine by me. Would be good to maybe get this in first and then see if I can update my branch and move that forward a bit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, will merge! |
||
| ->setAttributes($attributes); | ||
|
|
||
| $logger->emit($record); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,12 +45,13 @@ public function recordQuery(QueryExecuted $query): void | |
|
|
||
| $attributes = [ | ||
| TraceAttributes::DB_SYSTEM => $query->connection->getDriverName(), | ||
| TraceAttributes::DB_NAME => $query->connection->getDatabaseName(), | ||
| TraceAttributes::DB_OPERATION => $operationName, | ||
| TraceAttributes::DB_NAMESPACE => $query->connection->getDatabaseName(), | ||
| TraceAttributes::DB_OPERATION_NAME => $operationName, | ||
| /** @phan-suppress-next-line PhanDeprecatedClassConstant */ | ||
|
||
| TraceAttributes::DB_USER => $query->connection->getConfig('username'), | ||
| ]; | ||
|
|
||
| $attributes[TraceAttributes::DB_STATEMENT] = $query->sql; | ||
| $attributes[TraceAttributes::DB_QUERY_TEXT] = $query->sql; | ||
| /** @psalm-suppress PossiblyInvalidArgument */ | ||
| $span->setAttributes($attributes); | ||
| $span->end($nowInNs); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.