Skip to content

[fix][fn] Fix Go function incorrectly using nanoseconds for timestamp#25869

Open
Dream95 wants to merge 1 commit into
apache:masterfrom
Dream95:fix_go_stats
Open

[fix][fn] Fix Go function incorrectly using nanoseconds for timestamp#25869
Dream95 wants to merge 1 commit into
apache:masterfrom
Dream95:fix_go_stats

Conversation

@Dream95
Copy link
Copy Markdown
Contributor

@Dream95 Dream95 commented May 26, 2026

Motivation

Go function runtime recorded last_invocation and exception timestamps using time.UnixNano().

Modifications

  • Change setLastInvocation(), addUserException(), and addSysException() in
    pulsar-function-go/pf/stats.go to use UnixMilli() instead of UnixNano().

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

@Dream95
Copy link
Copy Markdown
Contributor Author

Dream95 commented May 26, 2026

/pulsarbot rerun-failure-checks

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.

1 participant