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

Feature Request: Allow longer zipkin span names #1751

Closed
pennstatephil opened this issue Sep 29, 2017 · 5 comments
Closed

Feature Request: Allow longer zipkin span names #1751

pennstatephil opened this issue Sep 29, 2017 · 5 comments

Comments

@pennstatephil
Copy link

Currently, "name" in the database is limited to 255 characters. We have some REALLY long URLs (I know it's not ideal) and this causes a SQL exception:

[ZipkinMySQLStorage-1] zipkin.server.ZipkinHttpCollector        : Cannot store spans [bc4e3b8f7025cbde.aff2ed227e2cea87<:bc4e3b8f7025cbde, bc4e3b8f7025cbde.aff2ed227e2cea87<:bc4e3b8f7025cbde, 4bad878142e4c587.069ffdef649e62c4<:c603f78125156b83, 4bad878142e4c587.c603f78125156b83<:4bad878142e4c587] due to DataAccessException(SQL [null]; Data truncation: Data too long for column 'name' at row 1)

Trying to increase the field ourselves causes a key length error:

17:07:35 alter table zipkin.zipkin_spans modify column name varchar(400) Error Code: 1071. Specified key was too long; max key length is 767 bytes 0.00033 sec

Is there any way to get a longer name supported? If not, is there a recommended practice we can follow to work around the issue?

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Oct 2, 2017 via email

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Oct 2, 2017 via email

@pennstatephil
Copy link
Author

pennstatephil commented Oct 3, 2017

On further inspection, this is an issue with the way Spring Cloud Sleuth picks span names:

TraceFilter.java line 136:
String name = HTTP_COMPONENT + ":" + uri;

When "uri" is really long, we start seeing these issues. I can migrate this issue over to that project... Or, is there an easy way to override the span name?

edited to add: looks like it's been reported here: spring-cloud/spring-cloud-sleuth#500

@codefromthecrypt
Copy link
Member

This issue was moved to spring-cloud/spring-cloud-sleuth#723

@codefromthecrypt
Copy link
Member

sleuth has means to change the naming convention, you can peek at docs or hop on gitter to ask about it https://gitter.im/spring-cloud/spring-cloud-sleuth

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

2 participants