Skip to content

"SpanId" error after Helm Chart upgrade to 0.13.0 #1754

Open
@lancethomas1

Description

@lancethomas1

Component(s)

controlplane

Component version

See list in description

wgc version

0.71.4

controlplane version

See list in description

router version

See list in description

What happened?

Description

After upgrading our Cosmo stack via Helm Chart, the traces in Studio are returning internal error.

Image

this is the log we are seeing from this error
"level":"error","time":"2025-04-03T16:18:03.829Z","pid":1,"hostname":"cosmo-controlplane-5c6bbdb479-5hvsm","msg":"Code: 47. DB::Exception: Unknown expression identifier 'SpanId' in scope SELECT TraceId AS traceId, SpanId AS spanId, toString(toUnixTimestamp(Timestamp)) AS unixTimestamp, OperationName AS operationName, OperationType AS operationType, Duration AS durationInNano, StatusCode AS statusCode, StatusMessage AS statusMessage, OperationContent AS operationContent, HttpStatusCode AS httpStatusCode, HttpHost AS httpHost, HttpUserAgent AS httpUserAgent, HttpMethod AS httpMethod, HttpTarget AS httpTarget, OperationPersistedID AS operationPersistedId, OperationHash AS operationHash, ClientName AS clientName, ClientVersion AS clientVersion, IF(empty(OperationPersistedID), false, true) AS isPersisted FROM cosmo.traces WHERE (Timestamp >= toDateTime(_CAST([1743610683](tel:1743610683), 'UInt64'))) AND (Timestamp <= toDateTime(_CAST([1743697083](tel:1743697083), 'UInt64'))) AND (FederatedGraphID = '71dc7892-879e-4693-92a5-b4dedf10ee5c') AND (OrganizationID = '08a5f0a0-3b29-4d1c-8ee8-7e26f2ce1533') ORDER BY unixTimestamp DESC LIMIT _CAST(0, 'Int16'), _CAST(20, 'Int16'). Maybe you meant: ['spanId']. (UNKNOWN_IDENTIFIER) (version 24.6.2.17 (official build))\n"} {"level":"error","time":"2025-04-03T16:18:03.829Z","pid":1,"hostname":"cosmo-controlplane-5c6bbdb479-5hvsm","reqId":"req-mfv","service":"wg.cosmo.platform.v1.PlatformService","method":"GetAnalyticsView","actor":{"userId":"f79b04ea-ecf5-4560-8c73-b81364d68330","organizationId":"08a5f0a0-3b29-4d1c-8ee8-7e26f2ce1533"}} {"level":"info","time":"2025-04-03T16:18:03.829Z","pid":1,"hostname":"cosmo-controlplane-5c6bbdb479-5hvsm","reqId":"req-mfv","res":{"statusCode":500},"responseTime":33.45413112640381,"msg":"request completed"}

seeing
Exception: Unknown expression identifier 'SpanId'
vs
Maybe you meant: ['spanId'].

curl from endpoint that's failing:
curl --location 'https://controlplane.graphql.mesh.dkp2.tst.aws-digital.rccl.com/wg.cosmo.platform.v1.PlatformService/GetAnalyticsView?connect=v1&encoding=json&message=%7B%22federatedGraphName%22%3A%22rcg-federation%22%2C%22config%22%3A%7B%22range%22%3A4%2C%22pagination%22%3A%7B%22limit%22%3A20%7D%2C%22sort%22%3A%7B%22id%22%3A%22unixTimestamp%22%2C%22desc%22%3Atrue%7D%7D%2C%22namespace%22%3A%22default%22%7D' \ --header 'accept: */*' \ --header 'accept-language: en-US,en;q=0.9' \ --header 'cache-control: no-cache' \ --header 'cosmo-org-slug: rccl' \ --header 'origin: removed' \ --header 'priority: u=1, i' \ --header 'referer: removed' \ --header 'sec-ch-ua: "Chromium";v="134", "Not:A-Brand";v="24", "Google Chrome";v="134"' \ --header 'sec-ch-ua-mobile: ?0' \ --header 'sec-ch-ua-platform: "macOS"' \ --header 'sec-fetch-dest: empty' \ --header 'sec-fetch-mode: cors' \ --header 'sec-fetch-site: same-site' \ --header 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' \ --header 'Cookie: removed

response:

Image

Steps to Reproduce

upgrade with change sets v0.13.0
login to Cosmo Studio
Click on analytics
click on traces

Expected Result

see traces

Actual Result

blank screen with internal error

Component Versions

Cosmo Version | 0.13.0
router | 0.189.0
control plane | 0.125.0
cdn | 0.14.1
studio | 0.102.0
otel collector | 0.18.1
clickhouse | 6.2.14
keycloak | 22.0.0
minio build-version | 14.6.25
postgresql | 12.12.10
redis | 19.3.3
graphqlmetrics | 0.33.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Package Manager: pnpm, npm, yarn, etc
Compiler(if manually compiled): (e.g., "go 14.2")

Router configuration

Router execution config

Log output

"level":"error","time":"2025-04-03T16:18:03.829Z","pid":1,"hostname":"cosmo-controlplane-5c6bbdb479-5hvsm","msg":"Code: 47. DB::Exception: Unknown expression identifier 'SpanId' in scope SELECT TraceId AS traceId, SpanId AS spanId, toString(toUnixTimestamp(Timestamp)) AS unixTimestamp, OperationName AS operationName, OperationType AS operationType, Duration AS durationInNano, StatusCode AS statusCode, StatusMessage AS statusMessage, OperationContent AS operationContent, HttpStatusCode AS httpStatusCode, HttpHost AS httpHost, HttpUserAgent AS httpUserAgent, HttpMethod AS httpMethod, HttpTarget AS httpTarget, OperationPersistedID AS operationPersistedId, OperationHash AS operationHash, ClientName AS clientName, ClientVersion AS clientVersion, IF(empty(OperationPersistedID), false, true) AS isPersisted FROM cosmo.traces WHERE (Timestamp >= toDateTime(_CAST(1743610683, 'UInt64'))) AND (Timestamp <= toDateTime(_CAST(1743697083, 'UInt64'))) AND (FederatedGraphID = '71dc7892-879e-4693-92a5-b4dedf10ee5c') AND (OrganizationID = '08a5f0a0-3b29-4d1c-8ee8-7e26f2ce1533') ORDER BY unixTimestamp DESC LIMIT _CAST(0, 'Int16'), _CAST(20, 'Int16'). Maybe you meant: ['spanId']. (UNKNOWN_IDENTIFIER) (version 24.6.2.17 (official build))\n"}
{"level":"error","time":"2025-04-03T16:18:03.829Z","pid":1,"hostname":"cosmo-controlplane-5c6bbdb479-5hvsm","reqId":"req-mfv","service":"wg.cosmo.platform.v1.PlatformService","method":"GetAnalyticsView","actor":{"userId":"f79b04ea-ecf5-4560-8c73-b81364d68330","organizationId":"08a5f0a0-3b29-4d1c-8ee8-7e26f2ce1533"}}
{"level":"info","time":"2025-04-03T16:18:03.829Z","pid":1,"hostname":"cosmo-controlplane-5c6bbdb479-5hvsm","reqId":"req-mfv","res":{"statusCode":500},"responseTime":33.45413112640381,"msg":"request completed"}

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginternally-reviewedThe issue has been reviewed internally.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions