OpenTelemetry.Resources.Gcp
1.0.0-alpha.1
Prefix Reserved
See the version list below for details.
dotnet add package OpenTelemetry.Resources.Gcp --version 1.0.0-alpha.1
NuGet\Install-Package OpenTelemetry.Resources.Gcp -Version 1.0.0-alpha.1
<PackageReference Include="OpenTelemetry.Resources.Gcp" Version="1.0.0-alpha.1" />
<PackageVersion Include="OpenTelemetry.Resources.Gcp" Version="1.0.0-alpha.1" />
<PackageReference Include="OpenTelemetry.Resources.Gcp" />
paket add OpenTelemetry.Resources.Gcp --version 1.0.0-alpha.1
#r "nuget: OpenTelemetry.Resources.Gcp, 1.0.0-alpha.1"
#:package OpenTelemetry.Resources.Gcp@1.0.0-alpha.1
#addin nuget:?package=OpenTelemetry.Resources.Gcp&version=1.0.0-alpha.1&prerelease
#tool nuget:?package=OpenTelemetry.Resources.Gcp&version=1.0.0-alpha.1&prerelease
Resource Detectors for Google Cloud Platform environments
| Status | |
|---|---|
| Stability | Development |
| Code Owners | @matt-hensley |
This package contains Resource Detectors for applications running in Google Cloud Platform environments.
Getting Started
You need to install the
OpenTelemetry.Resources.Gcp package to be able to use the
Google Cloud Platform Resource Detectors.
dotnet add package --prerelease OpenTelemetry.Resources.Gcp
Usage
You can configure Google Cloud Platform resource detector to
the ResourceBuilder with the following example.
using OpenTelemetry;
using OpenTelemetry.Resources;
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
.ConfigureResource(resource => resource.AddGcpDetector())
// other configurations
.Build();
using var meterProvider = Sdk.CreateMeterProviderBuilder()
.ConfigureResource(resource => resource.AddGcpDetector())
// other configurations
.Build();
using var loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddOpenTelemetry(options =>
{
options.SetResourceBuilder(ResourceBuilder.CreateDefault().AddGcpDetector());
});
});
Resource Attributes
The following OpenTelemetry semantic conventions will be detected depending on which Google Cloud Platform environment an application is running in.
Google Kubernetes Engine
| Attribute | Value |
|---|---|
| cloud.provider | gcp |
| cloud.platform | gcp_kubernetes_engine |
| cloud.account.id | auto |
| cloud.availability_zone | auto |
| host.id | auto |
| k8s.cluster.name | auto |
| k8s.namespace.name | auto |
| k8s.pod.name | auto |
Google App Engine
| Attribute | Value |
|---|---|
| cloud.provider | gcp |
| cloud.platform | gcp_app_engine |
| cloud.account.id | auto |
Google Cloud Run
| Attribute | Value |
|---|---|
| cloud.provider | gcp |
| cloud.platform | gcp_cloud_run |
| cloud.account.id | auto |
| cloud.availability_zone | auto |
| cloud.region | auto |
Google Compute Engine
| Attribute | Value |
|---|---|
| cloud.provider | gcp |
| cloud.platform | gcp_compute_engine |
| cloud.account.id | auto |
| cloud.availability_zone | auto |
| host.id | auto |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Google.Api.Gax (>= 4.8.0)
- OpenTelemetry (>= 1.15.3 && < 2.0.0)
- System.Text.Encodings.Web (>= 4.7.2)
- System.Text.Json (>= 4.7.2)
-
net10.0
- Google.Api.Gax (>= 4.8.0)
- OpenTelemetry (>= 1.15.3 && < 2.0.0)
-
net8.0
- Google.Api.Gax (>= 4.8.0)
- OpenTelemetry (>= 1.15.3 && < 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-alpha.3 | 100 | 7/22/2026 |
| 1.0.0-alpha.2 | 179 | 7/9/2026 |
| 1.0.0-alpha.1 | 417 | 4/21/2026 |