-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] set always uses UTC #34161
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for pkg/ottl: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This is happening because all our time setters, such as
pcommon.NewTimeStampFromTime which uses the UTC value of the time.
|
@agardnerIT can you confirm that the UTC representation of the |
I'm not really sure I follow you but my system clock right now is 20:04 and time.is/UTC says Output from a few seconds ago (so that tallies):
|
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
We would like to add more timezone support for working with timestamps on otel signals. Being able to say "this time should be considered MT" in a transformation is proper, even if behind the scenes the data is always stored as the equivalent UTC time by pdata. |
Component(s)
processor/transform
What happened?
Description
Opening at the request of @TylerHelmuth as per this Slack thread.
I'm using
set(time, Now())
in the transform processor but it's setting time to UTC (+0000
) while my system time is+1000
Steps to Reproduce
Expected Result
The
transform
processor / OTTL should either:set(time, Now().Timezone("AEST")
Actual Result
Collector version
v0.103.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: