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

how to disable the truncated of the db.statement #10616

Closed
lichenglin opened this issue Feb 21, 2024 · 3 comments
Closed

how to disable the truncated of the db.statement #10616

lichenglin opened this issue Feb 21, 2024 · 3 comments
Labels
enhancement New feature or request needs author feedback Waiting for additional feedback from the author needs triage New issue that requires triage stale

Comments

@lichenglin
Copy link

Is your feature request related to a problem? Please describe.

we found when there is a long sql. otel will truncate the sql. is there any way to disable it?

Describe the solution you'd like

no truncate. keep the orginal sql.

Describe alternatives you've considered

No response

Additional context

No response

@lichenglin lichenglin added enhancement New feature or request needs triage New issue that requires triage labels Feb 21, 2024
@lichenglin lichenglin changed the title how disable the truncated of the db.statement how to disable the truncated of the db.statement Feb 21, 2024
@laurit
Copy link
Contributor

laurit commented Feb 21, 2024

Although it is possible to limit the max length of an attribute https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#attribute-limits by default this is not done. What is the size where the db statement is truncated? Are you sure that it is the agent that truncates not your backend or something else?

@laurit laurit added the needs author feedback Waiting for additional feedback from the author label Feb 21, 2024
@laurit
Copy link
Contributor

laurit commented Feb 21, 2024

Could be

You can verify whether it this by disabling the sanitizer https://opentelemetry.io/docs/languages/java/automatic/configuration/#db-statement-sanitization

Copy link
Contributor

github-actions bot commented Mar 5, 2024

This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment.

@github-actions github-actions bot added the stale label Mar 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs author feedback Waiting for additional feedback from the author needs triage New issue that requires triage stale
Projects
None yet
Development

No branches or pull requests

2 participants