azure-sdk-for-go/sdk/tracing/azotel
Charles Lowell fe87e2d52c Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
..
internal Increment package version after release of tracing/azotel (#21901) 2023-11-07 17:56:13 +00:00
CHANGELOG.md Update dependencies for container registry and tracing (#22816) 2024-05-01 10:02:05 -07:00
LICENSE.txt
README.md Prep azotel for v0.1.0 release (#20977) 2023-06-06 14:53:32 -07:00
ci.yml * update ci.yml for azcosmos to _pass_ the injected stage rather than calling it directly 2024-03-15 11:17:06 -07:00
examples_test.go TestSpan needs to implement the AddLink functionality (#22845) 2024-05-24 08:55:10 -07:00
go.mod Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
go.sum Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
otel.go Update azotel to latest version of azcore (#21900) 2023-11-07 08:15:12 -08:00
otel_test.go TestSpan needs to implement the AddLink functionality (#22845) 2024-05-24 08:55:10 -07:00

README.md

Azure OpenTelemetry Adapter Module for Go

PkgGoDev Build Status

The azotel module is used to connect an instance of OpenTelemetry's TracerProvider to an Azure SDK client.

Getting started

NOTE: this module requires Go 1.19 or later

This project uses Go modules for versioning and dependency management.

To add the latest version to your go.mod file, execute the following command.

go get github.com/Azure/azure-sdk-for-go/sdk/tracing/azotel

General documentation and examples can be found on pkg.go.dev.

Using the adapter

Once you have created an OpenTelemetry TracerProvider, you connect it to an Azure SDK client via its ClientOptions.

options := azcore.ClientOptions{}
options.TracingProvider = azotel.NewTracingProvider(otelProvider, nil)

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.