-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[exporter/clickhouseexporter] Issue with fields not populating in ClickHouse Exporter (v0.104.0+) #36249
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Interesting that this was working before, I'll look for changes to the portion of the code where nested structures get encoded. I believe your usage of |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
exporter/clickhouse
What happened?
Description
I'm using the OpenTelemetry Collector to export trace data to ClickHouse. The fields CompanyTenantId and CompanyProductName in the otel_traces table are not being populated as expected. These fields should be mapped based on ResourceAttributes['company.tenant.id'] and ResourceAttributes['company.product.name']. However, they remain empty after data insertion.
After testing different versions, I found that this mapping works correctly in
v0.103.0
of theclickhouseexporter
, but fails in versionsv0.104.0
throughv0.107.0.
Steps to Reproduce
v0.104.0
tov0.107.0
, but they populate correctly inv0.103.0.
Expected Result
The
CompanyTenantId
andCompanyProductName
fields in the otel_traces table should be populated based on the values inResourceAttributes['company.tenant.id']
andResourceAttributes['company.product.name']
.Actual Result
These fields remain empty in ClickHouse for versions
v0.104.0
and above.Collector version
0.107.0
Environment information
Collector Build and Configuration Details
Environment
OS: "Ubuntu 22.04.5 LTS"
Compiler: "go 1.21"
OpenTelemetry Collector configuration
Log output
No response
Additional context
The issue appears to have been introduced starting with version
v0.104.0
of the clickhouseexporter. Reverting to versionv0.103.0
resolves the issue, suggesting a possible regression.The text was updated successfully, but these errors were encountered: