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

stripe / stripe-php / 7065595149

01 Dec 2023 09:55PM UTC coverage: 68.923% (-0.08%) from 69.002%
7065595149

push

github

web-flow
Merge pull request #1612 from stripe/richardm-usage

Report usage of .save and StripeClient

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

1 existing line in 1 file now uncovered.

2393 of 3472 relevant lines covered (68.92%)

3.48 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