• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / 7122068993

07 Dec 2023 12:30AM UTC coverage: 63.454% (-0.07%) from 63.52%
7122068993

push

github

web-flow
Merge pull request #1616 from stripe/richardm-merge-master-into-beta

Merge master into beta

9 of 22 new or added lines in 5 files covered. (40.91%)

2429 of 3828 relevant lines covered (63.45%)

3.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/RequestTelemetry.php
1
<?php
2

3
namespace Stripe;
4

5
/**
6
 * Class RequestTelemetry.
7
 *
8
 * Tracks client request telemetry
9
 */
10
class RequestTelemetry
11
{
12
    /** @var string */
13
    public $requestId;
14
    /** @var int */
15
    public $requestDuration;
16
    /** @var string[] */
17
    public $usage;
18

19
    /**
20
     * Initialize a new telemetry object.
21
     *
22
     * @param string $requestId the request's request ID
23
     * @param int $requestDuration the request's duration in milliseconds
24
     * @param string[] $usage names of tracked behaviors associated with this request
25
     */
NEW
26
    public function __construct($requestId, $requestDuration, $usage = [])
×
27
    {
28
        $this->requestId = $requestId;
×
29
        $this->requestDuration = $requestDuration;
×
NEW
30
        $this->usage = $usage;
×
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc