Top 0.8% dependent packages on proxy.golang.org
Top 2.3% dependent repos on proxy.golang.org
Top 7.8% forks on proxy.golang.org
proxy.golang.org : github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata
package inframetadata handles host metadata and infrastructure list related features. It stores the host metadata and gohai payload definitions as well as the `Reporter` implementation. A `Reporter` keeps a `HostMap` (a map of hostnames to host metadata payloads) and periodically clears it out and reports the information using a `Pusher` The `Reporter` has three public methods: - The `Run() error` and `Stop()` methods manage its lifecycle - The `ConsumeResource(pcommon.Resource) (bool, error)` method ingests resources, updates host metadata payloads, and reports whether any changes or errors occurred during processing. Internally, the `Reporter` manages a `HostMap`, which has two public methods: - The `Update(host string, resource pcommon.Resource) (changed bool, err error)` method updates a hosts information and reports whether any changes or errors occurred during processing. - The `Extract() map[string]payloads.HostMetadata` method clears out the `HostMap` and returns a copy of its internal information.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21data%21dog/opentelemetry-mapping-go/pkg/inframetadata
License: Apache-2.0
Latest release: 25 days ago
First release: almost 2 years ago
Namespace: github.com/DataDog/opentelemetry-mapping-go/pkg
Dependent packages: 69
Dependent repositories: 5
Stars: 8 on GitHub
Forks: 6 on GitHub
Docker dependents: 1
Docker downloads: 40,365
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago