Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support latest DogStatsD version (#31296)
**Description:** * Support DogStatsD v1.2 by accepting metrics with container IDs * Support DogStatsD v1.3 by accepting metrics with timestamps * Add tests for the cases above * Improve readability in `statsd_parser_test.go` when calling `testStatsDMetric` * Add changelog entry **Link to tracking Issue:** #31295 **Testing:** 1. Added unit tests to validate that the new fields are accepted and interpreted correctly 2. Manual tests to verify that the metrics go through a collector pipeline. Notice the `container_id` attribute and the `Timestamp` field, which contains a custom value different from `StartTimestamp`: ``` ScopeMetrics #0 ScopeMetrics SchemaURL: InstrumentationScope otelcol/statsdreceiver 0.94.0-dev Metric #0 Descriptor: -> Name: workflow_execution.failure -> Description: -> Unit: -> DataType: Sum -> IsMonotonic: false -> AggregationTemporality: Delta NumberDataPoints #0 Data point attributes: -> container_id: Str(d69b8773f0ac1d93447a5835cb4ed1bf13dd336d32994830687ae1f352c86fe4) -> deployment.id: Str(d_0lBskd) -> metric_type: Str(counter) -> env: Str(development) -> project.id: Str(proj_kYRs18) -> trace.id: Str(2cQtSfsef2TN3EC2psGIorPaFd8) -> workflow.id: Str(p_0PACqQ) StartTimestamp: 2024-02-16 03:53:30.323425523 +0000 UTC Timestamp: 2024-02-16 03:53:51 +0000 UTC Value: 1 ```
- Loading branch information