Skip to content

Commit

Permalink
Update parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineLemaire committed Jun 24, 2024
1 parent a0980e3 commit f04bd0b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"keywords": [ "datadog", "polyfill" ],
"license": "MIT",
"type": "library",
"require": {
"php": ">=7.4"
},
"autoload": {
"files": [
"src/DDTrace.php",
Expand Down
4 changes: 2 additions & 2 deletions src/DDAppsec.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

if (!extension_loaded('ddappsec')) {

function track_user_login_success_event($userId, $metadata)
function track_user_login_success_event($userId, $metadata, $automated = null)
{
}

function track_user_login_failure_event($userId, $exist, $metadata)
function track_user_login_failure_event($userId, $exists, $metadata, $automated = null)
{
}

Expand Down
16 changes: 11 additions & 5 deletions src/DDTrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

if (!extension_loaded('ddtrace')) {

function add_global_tag($key, $value)
function add_global_tag(string $key, string $value)
{
}

Expand All @@ -16,23 +16,29 @@ function root_span()
{
}

function start_span()
function start_span(float $startTime = 0)
{
}

function close_span()
function close_span(float $finishTime = 0)
{
}

function trace_id()
{
}

function trace_method()
/**
* @param \Closure|array|null $tracingClosureOrConfigArray
*/
function trace_method(
string $className,
string $methodName,
$tracingClosureOrConfigArray = null)
{
}

function set_user($userId, $metadata = [], $propagate = false)
function set_user(string $userId, array $metadata = [], ?bool $propagate = null)
{
}
}

0 comments on commit f04bd0b

Please sign in to comment.