mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-12 02:28:07 +02:00
6eb1157b45
* Update metric API documentation Remove the warning on otel/metric not being GA. Document the otel/metric and otel/metric/instrument package for instrumenters. * Remove unrendered links in MeterProvider.Meter doc * Clarify synchronous and asynchronous * Fix misspelling * Update metric/instrument/doc.go Co-authored-by: Robert Pająk <pellared@hotmail.com> * Update metric/instrument/doc.go Co-authored-by: Robert Pająk <pellared@hotmail.com> * Update metric/instrument/doc.go Co-authored-by: Robert Pająk <pellared@hotmail.com> * Update metric/instrument/doc.go Co-authored-by: Robert Pająk <pellared@hotmail.com> * Apply feedback * Apply suggestions from code review Co-authored-by: Anthony Mirabella <a9@aneurysm9.com> --------- Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com> Co-authored-by: Robert Pająk <pellared@hotmail.com> Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
36 lines
1.6 KiB
Go
36 lines
1.6 KiB
Go
// Copyright The OpenTelemetry Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
/*
|
|
Package metric provides the OpenTelemetry API used to measure metrics about
|
|
source code operation.
|
|
|
|
This API is separate from its implementation so the instrumentation built from
|
|
it is reusable. See [go.opentelemetry.io/otel/sdk/metric] for the official
|
|
OpenTelemetry implementation of this API.
|
|
|
|
All measurements made with this package are made via instruments. These
|
|
instruments are created by a [Meter] which itself is created by a
|
|
[MeterProvider]. Applications need to accept a [MeterProvider] implementation
|
|
as a starting point when instrumenting. This can be done directly, or by using
|
|
the OpenTelemetry global MeterProvider via [GetMeterProvider]. Using an
|
|
appropriately named [Meter] from the accepted [MeterProvider], instrumentation
|
|
can then be built from the [Meter]'s instruments. See
|
|
[go.opentelemetry.io/otel/metric/instrument] for documentation on each
|
|
instrument and its intended use.
|
|
|
|
[GetMeterProvider]: https://pkg.go.dev/go.opentelemetry.io/otel#GetMeterProvider
|
|
*/
|
|
package metric // import "go.opentelemetry.io/otel/metric"
|