Skip to content

Commit

Permalink
Fix stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamluc committed Apr 30, 2024
1 parent 8758b72 commit ea7b71d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion ext/ddtrace.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,26 +623,46 @@ function curl_multi_exec_get_request_spans(&$array): void {}

/**
* Update a DogStatsD counter
*
* @param string $metric The metric name
* @param int $value The metric value
* @param array $tags A list of tags associated to the metric
*/
function dogstatsd_count(string $metric, int $value, array $tags = []): void {}

/**
* Update a DogStatsD distribution
*
* @param string $metric The metric name
* @param float $value The metric value
* @param array $tags A list of tags associated to the metric
*/
function dogstatsd_distribution(string $metric, float $value, array $tags = []): void {}

/**
* Update a DogStatsD gauge
*
* @param string $metric The metric name
* @param float $value The metric value
* @param array $tags A list of tags associated to the metric
*/
function dogstatsd_gauge(string $metric, float $value, array $tags = []): void {}

/**
* Update a DogStatsD distribution
* Update a DogStatsD histogram
*
* @param string $metric The metric name
* @param float $value The metric value
* @param array $tags A list of tags associated to the metric
*/
function dogstatsd_histogram(string $metric, float $value, array $tags = []): void {}

/**
* Update a DogStatsD set
*
* @param string $metric The metric name
* @param int $value The metric value
* @param array $tags A list of tags associated to the metric
*/
function dogstatsd_set(string $metric, int $value, array $tags = []): void {}
}
Expand Down
2 changes: 1 addition & 1 deletion ext/ddtrace_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4a8fe457d712239387e789a8b07d15c7d25d9bd4 */
* Stub hash: 00ffdbf5cdef5e8af554d139b0bfb22c856d7654 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_DDTrace_trace_method, 0, 3, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, className, IS_STRING, 0)
Expand Down

0 comments on commit ea7b71d

Please sign in to comment.