utils

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJsonData

func GetJsonData(settings backend.DataSourceInstanceSettings) (map[string]interface{}, error)

GetJsonData just gets the json in easier to work with type. It's used on multiple places which isn't super effective but only when creating a client which should not happen often anyway.

func StartTrace

func StartTrace(ctx context.Context, tracer tracing.Tracer, name string, attributes []Attribute) (context.Context, func())

StartTrace setups a trace but does not panic if tracer is nil which helps with testing

Types

type Attribute

type Attribute struct {
	Key   string
	Value interface{}
	Kv    attribute.KeyValue
}

Jump to

Keyboard shortcuts

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