|
| 1 | +<?php |
| 2 | + |
| 3 | +// DO NOT EDIT, this is an Auto-generated file from script/semantic-conventions |
| 4 | + |
| 5 | +declare(strict_types=1); |
| 6 | + |
| 7 | +namespace OpenTelemetry\SemConv\Metrics; |
| 8 | + |
| 9 | +interface HttpMetrics |
| 10 | +{ |
| 11 | + /** |
| 12 | + * Number of active HTTP requests. |
| 13 | + * |
| 14 | + * Instrument: updowncounter |
| 15 | + * Unit: {request} |
| 16 | + * |
| 17 | + * @experimental |
| 18 | + */ |
| 19 | + public const HTTP_CLIENT_ACTIVE_REQUESTS = 'http.client.active_requests'; |
| 20 | + |
| 21 | + /** |
| 22 | + * The duration of the successfully established outbound HTTP connections. |
| 23 | + * |
| 24 | + * Instrument: histogram |
| 25 | + * Unit: s |
| 26 | + * |
| 27 | + * @experimental |
| 28 | + */ |
| 29 | + public const HTTP_CLIENT_CONNECTION_DURATION = 'http.client.connection.duration'; |
| 30 | + |
| 31 | + /** |
| 32 | + * Number of outbound HTTP connections that are currently active or idle on the client. |
| 33 | + * |
| 34 | + * Instrument: updowncounter |
| 35 | + * Unit: {connection} |
| 36 | + * |
| 37 | + * @experimental |
| 38 | + */ |
| 39 | + public const HTTP_CLIENT_OPEN_CONNECTIONS = 'http.client.open_connections'; |
| 40 | + |
| 41 | + /** |
| 42 | + * Size of HTTP client request bodies. |
| 43 | + * The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. |
| 44 | + * |
| 45 | + * Instrument: histogram |
| 46 | + * Unit: By |
| 47 | + * |
| 48 | + * @experimental |
| 49 | + */ |
| 50 | + public const HTTP_CLIENT_REQUEST_BODY_SIZE = 'http.client.request.body.size'; |
| 51 | + |
| 52 | + /** |
| 53 | + * Duration of HTTP client requests. |
| 54 | + * |
| 55 | + * Instrument: histogram |
| 56 | + * Unit: s |
| 57 | + * |
| 58 | + * @stable |
| 59 | + */ |
| 60 | + public const HTTP_CLIENT_REQUEST_DURATION = 'http.client.request.duration'; |
| 61 | + |
| 62 | + /** |
| 63 | + * Size of HTTP client response bodies. |
| 64 | + * The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. |
| 65 | + * |
| 66 | + * Instrument: histogram |
| 67 | + * Unit: By |
| 68 | + * |
| 69 | + * @experimental |
| 70 | + */ |
| 71 | + public const HTTP_CLIENT_RESPONSE_BODY_SIZE = 'http.client.response.body.size'; |
| 72 | + |
| 73 | + /** |
| 74 | + * Number of active HTTP server requests. |
| 75 | + * |
| 76 | + * Instrument: updowncounter |
| 77 | + * Unit: {request} |
| 78 | + * |
| 79 | + * @experimental |
| 80 | + */ |
| 81 | + public const HTTP_SERVER_ACTIVE_REQUESTS = 'http.server.active_requests'; |
| 82 | + |
| 83 | + /** |
| 84 | + * Size of HTTP server request bodies. |
| 85 | + * The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. |
| 86 | + * |
| 87 | + * Instrument: histogram |
| 88 | + * Unit: By |
| 89 | + * |
| 90 | + * @experimental |
| 91 | + */ |
| 92 | + public const HTTP_SERVER_REQUEST_BODY_SIZE = 'http.server.request.body.size'; |
| 93 | + |
| 94 | + /** |
| 95 | + * Duration of HTTP server requests. |
| 96 | + * |
| 97 | + * Instrument: histogram |
| 98 | + * Unit: s |
| 99 | + * |
| 100 | + * @stable |
| 101 | + */ |
| 102 | + public const HTTP_SERVER_REQUEST_DURATION = 'http.server.request.duration'; |
| 103 | + |
| 104 | + /** |
| 105 | + * Size of HTTP server response bodies. |
| 106 | + * The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length) header. For requests using transport encoding, this should be the compressed size. |
| 107 | + * |
| 108 | + * Instrument: histogram |
| 109 | + * Unit: By |
| 110 | + * |
| 111 | + * @experimental |
| 112 | + */ |
| 113 | + public const HTTP_SERVER_RESPONSE_BODY_SIZE = 'http.server.response.body.size'; |
| 114 | + |
| 115 | +} |
0 commit comments