Skip to content

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

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

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions