package counter
Import Path
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal/counter (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package counter provides a simple counter for generating unique IDs.
This package is used to generate unique IDs while allowing testing packages
to reset the counter.
Package-Level Functions (total 2)
NextExporterID returns the next unique ID for an exporter.
SetExporterID sets the exporter ID counter to v and returns the previous
value.
This function is useful for testing purposes, allowing you to reset the
counter. It should not be used in production code.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |