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

[pkg/ottl] introduce FormatTime() converter function #37112

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

odubajDT
Copy link
Contributor

@odubajDT odubajDT commented Jan 9, 2025

Description

Adds a new FormatTime(time, format) converter to convert any time to a human readable string with the specified format

Link to tracking issue

Fixes #36870

@odubajDT odubajDT marked this pull request as ready for review January 9, 2025 14:59
@odubajDT odubajDT requested a review from a team as a code owner January 9, 2025 14:59
@github-actions github-actions bot requested a review from edmocosta January 10, 2025 06:02
@odubajDT odubajDT changed the title [pkg/ottl] introduce Timestamp() converter function [pkg/ottl] introduce FormatTime() converter function Jan 10, 2025
@odubajDT odubajDT requested a review from TylerHelmuth January 10, 2025 06:03
.chloggen/ottl-timestamp.yaml Outdated Show resolved Hide resolved
.chloggen/ottl-timestamp.yaml Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/func_formattime.go Show resolved Hide resolved
pkg/ottl/ottlfuncs/func_formattime.go Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/func_formattime.go Outdated Show resolved Hide resolved
odubajDT and others added 5 commits January 13, 2025 06:45
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@TylerHelmuth TylerHelmuth merged commit e221594 into open-telemetry:main Jan 14, 2025
163 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider a Timestamp() or similar Converter in OTTL
5 participants