-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
invocation_details.go
39 lines (34 loc) · 1.23 KB
/
invocation_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package invocationlifecycle
import (
"net/http"
"time"
"github.com/DataDog/datadog-agent/pkg/serverless/trace/inferredspan"
)
// InvocationStartDetails stores information about the start of an invocation.
// This structure is passed to the onInvokeStart method of the invocationProcessor interface
type InvocationStartDetails struct {
StartTime time.Time
InvokeEventRawPayload []byte
InvokeEventHeaders http.Header
InvokedFunctionARN string
InferredSpan inferredspan.InferredSpan
}
// InvocationEndDetails stores information about the end of an invocation.
// This structure is passed to the onInvokeEnd method of the invocationProcessor interface
type InvocationEndDetails struct {
EndTime time.Time
IsError bool
IsTimeout bool
RequestID string
ResponseRawPayload []byte
ColdStart bool
ProactiveInit bool
Runtime string
ErrorMsg string
ErrorType string
ErrorStack string
}