-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asynchronous (background) transport for traces, logs and metrics (#101…
…) (#102)
- Loading branch information
Showing
27 changed files
with
1,166 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
prod/native/extension/phpt/tests/instrumentation_user_method_static.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--TEST-- | ||
instrumentation - user method - static | ||
--ENV-- | ||
ELASTIC_OTEL_LOG_LEVEL_STDERR=INFO | ||
--INI-- | ||
extension=/elastic/elastic_otel_php.so | ||
elastic_otel.bootstrap_php_part_file={PWD}/includes/bootstrap_mock.inc | ||
--FILE-- | ||
<?php | ||
declare(strict_types=1); | ||
|
||
|
||
class TestClass | ||
{ | ||
static function userspace($arg1, $arg2, $arg3) | ||
{ | ||
echo "* userspace()\n"; | ||
} | ||
} | ||
|
||
elastic_otel_hook("testclass", "userspace", function () { | ||
echo "*** prehook userspace()\n"; | ||
}, function (): void { | ||
echo "*** posthook userspace()\n"; | ||
}); | ||
|
||
|
||
TestClass::userspace("first", 2, 3); | ||
|
||
echo "Test completed\n"; | ||
?> | ||
--EXPECTF-- | ||
*** prehook userspace() | ||
* userspace() | ||
*** posthook userspace() | ||
Test completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.