metric

package
v0.0.0-...-c5cc7cd Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGraphQLServerPlugin

func NewGraphQLServerPlugin() graphql.HandlerExtension

NewGraphQLServerPlugin creates a metrics plugin for GraphQL servers. Registers metrics for GraphQL requests, resolvers and responses.

func NewHTTPDSPlugin

func NewHTTPDSPlugin() httpds.Plugin

NewHTTPDSPlugin creates a metrics plugin for HTTP data sources. Registers the HTTP request method, host, path and status.

func NewRESTServerPlugin

func NewRESTServerPlugin() gin.HandlerFunc

NewRESTServerPlugin creates a metrics plugin for REST servers. Registers metrics for HTTP requests and responses.

func WithServer

func WithServer(srv *gin.Engine)

WithServer adds a metrics endpoint to a given server

Types

This section is empty.

Jump to

Keyboard shortcuts

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