You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the clickhouseexporter, but fails in versions v0.104.0 through v0.107.0.
Steps to Reproduce
Create a ClickHouse table with fields CompanyTenantId and CompanyProductName, using the schema:
Verify the data in ClickHouse. Notice that CompanyTenantId and CompanyProductName remain empty in versions v0.104.0 to v0.107.0, but they populate correctly in v0.103.0.
Expected Result
The CompanyTenantId and CompanyProductName fields in the otel_traces table should be populated based on the values in ResourceAttributes['company.tenant.id'] and ResourceAttributes['company.product.name'].
Actual Result
These fields remain empty in ClickHouse for versions v0.104.0 and above.
The issue appears to have been introduced starting with version v0.104.0 of the clickhouseexporter. Reverting to version v0.103.0 resolves the issue, suggesting a possible regression.
The text was updated successfully, but these errors were encountered:
AllanAlmeida
changed the title
Issue with fields not populating in ClickHouse Exporter (v0.104.0+)
[exporter/clickhouseexporter] Issue with fields not populating in ClickHouse Exporter (v0.104.0+)
Nov 6, 2024
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 DEFAULT is correct, and it's a good idea to extract these columns. Note that this may change soon if we use the new JSON type for these nested structures
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: