Skip to content

The "Init Duration" reported by the RIE is wrong #106

Open

Description

@simonis

The "Init Duration" reported by the RIE is much too small. It is taken before the actual language runtime is even started:

	initStart, initEnd := InitHandler(sandbox, functionVersion, timeout, bs)

Instead, the end of the Init phase should be recorded when the sendInitRuntimeDoneLogEvent() is posted:

	defer func() {
		sendInitRuntimeDoneLogEvent(execCtx, sbInfoFromInit.SandboxType, runtimeDoneStatus)
	}()

Activity

  1. added
    enhancement
    good first issue
    on Sep 16, 2025
  2. roger-zhangg commented on Sep 16, 2025

    @roger-zhangg
    Member

    Thanks for reporting @simonis We would appreciate if you already have some idea on the fix and we will be glad to review them

  3. JayYarlagadda commented on Aug 1, 2026

    @JayYarlagadda

    Hi, I would like to work on this. I traced the current init path and plan to first add a regression test with delayed runtime initialization, then correct the timing boundary so Init Duration covers initialization through runtime readiness rather than ending early. I will keep the change focused and run make integ-tests-and-compile before opening the PR. Please let me know if you expect a different timing boundary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions