Skip to content
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

Tenant ID does not appear on all log lines for tenant #847

Closed
jeffreyscarpenter opened this issue Jan 30, 2024 · 0 comments
Closed

Tenant ID does not appear on all log lines for tenant #847

jeffreyscarpenter opened this issue Jan 30, 2024 · 0 comments
Assignees

Comments

@jeffreyscarpenter
Copy link
Contributor

jeffreyscarpenter commented Jan 30, 2024

PR #810 added the tenant ID to log lines using mdc, however this does not seem to work for all log lines. There are several messages that do not have a tenant ID even though the activity is associated with a user invocation.

For example: slow query log messages from the Java driver such as this (just showing the basic log message here, not the entire JSON entry):

[s670|88881972][Node(endPoint=/127.0.0.1:9042, hostId=f528764d-624d-3129-b32c-21fbca0cb8d6, hashCode=18883fd9)] Slow (1.190 s) [0 values] CREATE TABLE IF NOT EXISTS "default_keyspace"."documents_c79af125" (    key                 tuple<tinyint,text>,    tx_id               timeuuid,     doc_json            text,    exist_keys          set<text>,    array_size          map<text, int>,    array_contains      set<text>,    query_bool_values   map<text, tinyint>,    query_dbl_values    map<text, decimal>,    query_text_values   map<text, text>,     query_timestamp_values map<text, timestamp>,     query_null_values   set<text>,        ...<truncated>

or other driver errors

[s675] Authentication error (AuthenticationException: Authentication error on node /127.0.0.1:9042: server replied with 'Provided username token and/or password are incorrect' to AuthResponse request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants