invocation

package
v2.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIncomingTraceLinks(links []string)

AddIncomingTraceLinks adds links to incomingTraceLinks

func Clear

func Clear()

Clear clears the invocation tags and error

func GetAgentTag

func GetAgentTag(key string) interface{}

GetAgentTag returns invocation tag for key

func GetAgentTags

func GetAgentTags() map[string]interface{}

GetAgentTags returns invocation tags

func GetTag

func GetTag(key string) interface{}

GetTag returns invocation tag for key

func GetTags

func GetTags() map[string]interface{}

GetTags returns invocation tags

func New

func New() *invocationPlugin

New initializes and returns a new invocationPlugin object.

func SetAgentTag

func SetAgentTag(key string, value interface{})

SetAgentTag sets the given tag for invocation

func SetError

func SetError(exception error)

set error provided from user

func SetTag

func SetTag(key string, value interface{})

SetTag sets the given tag for invocation

Types

type Resource

type Resource struct {
	ResourceType          string   `json:"resourceType"`
	ResourceName          string   `json:"resourceName"`
	ResourceOperation     string   `json:"resourceOperation"`
	ResourceCount         int      `json:"resourceCount"`
	ResourceErrorCount    int      `json:"resourceErrorCount"`
	ResourceDuration      int64    `json:"resourceDuration"`
	ResourceMaxDuration   int64    `json:"resourceMaxDuration"`
	ResourceAvgDuration   float64  `json:"resourceAvgDuration"`
	ResourceBlockedCount  int      `json:"resourceBlockedCount"`
	ResourceViolatedCount int      `json:"resourceViolatedCount"`
	ResourceErrors        []string `json:"resourceErrors"`
	// contains filtered or unexported fields
}

Resource type stores information about resources in spans

func NewResource

func NewResource(rawSpan *tracer.RawSpan) (*Resource, error)

NewResource initializes and returns Resource with given span

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL