Skip to content

statsd receiver does not handle empty tag values #38987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
srolel opened this issue Mar 26, 2025 · 2 comments
Closed

statsd receiver does not handle empty tag values #38987

srolel opened this issue Mar 26, 2025 · 2 comments
Labels
bug Something isn't working needs triage New item requiring triage receiver/statsd statsd related issues

Comments

@srolel
Copy link

srolel commented Mar 26, 2025

Component(s)

receiver/statsd

What happened?

Description

When sending a metric with a tag with an empty value, the metric is not processed by statsd receiver.

Steps to Reproduce

it's something like "test.metric:42|c|#key:".

I added a test to statsd_parser_test.go and the result is

Error:      	Received unexpected error:
        	            	invalid tag format: "key:"

Expected Result

metric is processed (datadog agent handles this case)

Actual Result

metric is dropped

Collector version

v0.122.1

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

Log output

Additional context

No response

@srolel srolel added bug Something isn't working needs triage New item requiring triage labels Mar 26, 2025
@github-actions github-actions bot added the receiver/statsd statsd related issues label Mar 26, 2025
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@srolel
Copy link
Author

srolel commented Mar 26, 2025

had to set enable_simple_tags: true!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage receiver/statsd statsd related issues
Projects
None yet
Development

No branches or pull requests

1 participant