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

Add elasticsearch storage date format config. #101

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

sniperking1234
Copy link
Contributor

Signed-off-by: Chen Zhengwei chenzhengwei@inspur.com

Which problem is this PR solving?

Short description of the changes

  • User can configure the date separator to change the date format.
  • Default date formate is yyyy-MM-dd, it won't affect the old version.

Associated PR: jaegertracing/jaeger#2637

Signed-off-by: Chen Zhengwei <chenzhengwei@inspur.com>

Signed-off-by: chen zhengwei <chenzhengwei@inspur.com>
@pavolloffay
Copy link
Member

Depends on jaegertracing/jaeger#2637

@sniperking1234
Copy link
Contributor Author

sniperking1234 commented Dec 3, 2020

@pavolloffay jaegertracing/jaeger#2637 have been merged into the master. Would you please review the code?

if (separator.contains("'")) {
separator = separator.replace("'", "''");
}
return String.format("yyyy'%s'MM'%s'dd", separator, separator);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why there is '%s the 's ?

Copy link
Contributor Author

@sniperking1234 sniperking1234 Dec 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is '%s', not '%s. The separator may be more than one character.

@jpkrohling
Copy link

@pavolloffay do you have time to review this one?

@pavolloffay pavolloffay merged commit 0eb64c4 into jaegertracing:main Jun 24, 2022
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

Successfully merging this pull request may close these issues.

elasticsearch storage can not customize the date format
3 participants