Skip to content

[pkg/ottl] Update contexts so that all time fields Getters return time.Time and Setters take time.Time #22010

Closed
@TylerHelmuth

Description

@TylerHelmuth

OTTL contexts are updated so that all time fields Getters return time.Time and Setters take time.Time. The accessor names should be updated to drop the time precision (_nano).

Context and fields that need updating:

  • ottldatapoint
    • start_time_unix_nano
    • time_unix_nano
  • ottllog
    • time_unix_nano
    • observed_time_unix_nano
  • ottlspan
    • start_time_unix_nano
    • end_time_unix_nano
  • ottlspanevent
    • time_unix_nano

Will also need to update all the cache accessors to be able to handle getting and setting time.Time and time.Duration. Instead of getting and setting a pcommon.Map it should be expressed as a map[string]string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions