-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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] Add Day
converter
#33121
Merged
evan-bradley
merged 4 commits into
open-telemetry:main
from
sinkingpoint:sinkingpoint/add-day-converter
May 22, 2024
Merged
[pkg/ottl] Add Day
converter
#33121
evan-bradley
merged 4 commits into
open-telemetry:main
from
sinkingpoint:sinkingpoint/add-day-converter
May 22, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sinkingpoint
requested review from
TylerHelmuth,
bogdandrutu and
evan-bradley
as code owners
May 20, 2024 04:07
evan-bradley
approved these changes
May 20, 2024
sinkingpoint
force-pushed
the
sinkingpoint/add-day-converter
branch
from
May 20, 2024 23:31
0dff0be
to
ae60a8a
Compare
Thanks for the review @evan-bradley ! I've updated it with your changes. Those build failures seem unrelated? |
This adds a `Day` converter that extracts the int day component from a `time.Time` Signed-off-by: sinkingpoint <colin@quirl.co.nz>
Signed-off-by: sinkingpoint <colin@quirl.co.nz>
sinkingpoint
force-pushed
the
sinkingpoint/add-day-converter
branch
from
May 21, 2024 23:38
ae60a8a
to
3823c42
Compare
cc @TylerHelmuth if you want to look, this is the same as the |
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
TylerHelmuth
approved these changes
May 22, 2024
TylerHelmuth
added
the
ready to merge
Code review completed; ready to merge by maintainers
label
May 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This adds in a
Day
converter that takes atime.Time
and returns the int day component. Analogous to what we already have withHour
Link to tracking Issue: #33106
Testing: Added two unit tests based on the existing
Hour
onesDocumentation: Added the new converter to the ottlfuncs README.md