netconv

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

README

Semconv v1.16.0 NET conv

PkgGoDev

Documentation

Overview

Package netconv provides OpenTelemetry network semantic conventions for tracing telemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(address string, conn net.Conn) []attribute.KeyValue

Client returns trace attributes for a client network connection to address. See net.Dial for information about acceptable address values, address should be the same as the one used to create conn. If conn is nil, only network peer attributes will be returned that describe address. Otherwise, the socket level information about conn will also be included.

func Server

func Server(address string, ln net.Listener) []attribute.KeyValue

Server returns trace attributes for a network listener listening at address. See net.Listen for information about acceptable address values, address should be the same as the one used to create ln. If ln is nil, only network host attributes will be returned that describe address. Otherwise, the socket level information about ln will also be included.

func Transport

func Transport(network string) attribute.KeyValue

Transport returns a trace attribute describing the transport protocol of the passed network. See the net.Dial for information about acceptable network values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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