utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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]any, 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 trace.Tracer, name string, attributes ...attribute.KeyValue) (context.Context, func())

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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