-
Notifications
You must be signed in to change notification settings - Fork 169
Azure resource providers #1228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
breedx-splk
merged 19 commits into
open-telemetry:main
from
zeitlinger:azure-resource-provider
Jan 17, 2025
Merged
Azure resource providers #1228
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
acfc597
add Azure resource provider
zeitlinger 34f89fa
add Azure VM resource provider
zeitlinger cfa5d4e
add Azure functions resource provider
zeitlinger bd049dd
add Azure container resource provider
zeitlinger 90a294f
add Azure vm resource provider
zeitlinger edd867f
docs
zeitlinger 13a1d13
Update
heyams b9396b7
Update
heyams f54a88b
Rename enum
heyams 534f401
Fix deprecated ResourceAttributes
heyams 0597f41
Fix tests
heyams 5b4a90e
Fix import
heyams 43ba1ae
add aks resource provider
zeitlinger 1d41f6f
add component owners
zeitlinger d81cfab
fix semconv usage
zeitlinger 5b7a469
fix visibility
zeitlinger 0bf1b43
add component owners
zeitlinger f813978
Merge branch 'main' into azure-resource-provider
zeitlinger 3a60e9f
fix
zeitlinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...resources/src/main/java/io/opentelemetry/contrib/azure/resource/IncubatingAttributes.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| /* | ||
| * Copyright The OpenTelemetry Authors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package io.opentelemetry.contrib.azure.resource; | ||
|
|
||
| import io.opentelemetry.api.common.AttributeKey; | ||
|
|
||
| // copied from opentelemetry-semconv-incubating | ||
| final class IncubatingAttributes { | ||
|
|
||
| // service attributes | ||
| public static final AttributeKey<String> SERVICE_INSTANCE_ID = | ||
| AttributeKey.stringKey("service.instance.id"); | ||
|
|
||
| // cloud attributes | ||
| public static final AttributeKey<String> CLOUD_PLATFORM = | ||
| AttributeKey.stringKey("cloud.platform"); | ||
| public static final AttributeKey<String> CLOUD_PROVIDER = | ||
| AttributeKey.stringKey("cloud.provider"); | ||
| public static final AttributeKey<String> CLOUD_REGION = AttributeKey.stringKey("cloud.region"); | ||
| public static final AttributeKey<String> CLOUD_RESOURCE_ID = | ||
| AttributeKey.stringKey("cloud.resource_id"); | ||
|
|
||
| public static final class CloudPlatformIncubatingValues { | ||
| public static final String AZURE_VM = "azure_vm"; | ||
| public static final String AZURE_AKS = "azure_aks"; | ||
| public static final String AZURE_FUNCTIONS = "azure_functions"; | ||
| public static final String AZURE_APP_SERVICE = "azure_app_service"; | ||
|
|
||
| private CloudPlatformIncubatingValues() {} | ||
| } | ||
|
|
||
| public static final class CloudProviderIncubatingValues { | ||
| public static final String AZURE = "azure"; | ||
|
|
||
| private CloudProviderIncubatingValues() {} | ||
| } | ||
|
|
||
| // deployment attributes | ||
| public static final AttributeKey<String> DEPLOYMENT_ENVIRONMENT_NAME = | ||
| AttributeKey.stringKey("deployment.environment.name"); | ||
|
|
||
| // host attributes | ||
| public static final AttributeKey<String> HOST_ID = AttributeKey.stringKey("host.id"); | ||
| public static final AttributeKey<String> HOST_NAME = AttributeKey.stringKey("host.name"); | ||
| public static final AttributeKey<String> HOST_TYPE = AttributeKey.stringKey("host.type"); | ||
|
|
||
| // faas attributes | ||
| public static final AttributeKey<String> FAAS_INSTANCE = AttributeKey.stringKey("faas.instance"); | ||
| public static final AttributeKey<Long> FAAS_MAX_MEMORY = AttributeKey.longKey("faas.max_memory"); | ||
| public static final AttributeKey<String> FAAS_NAME = AttributeKey.stringKey("faas.name"); | ||
| public static final AttributeKey<String> FAAS_VERSION = AttributeKey.stringKey("faas.version"); | ||
|
|
||
| // host attributes | ||
| static final AttributeKey<String> K8S_CLUSTER_NAME = AttributeKey.stringKey("k8s.cluster.name"); | ||
|
|
||
| // OS attributes | ||
| public static final AttributeKey<String> OS_TYPE = AttributeKey.stringKey("os.type"); | ||
| public static final AttributeKey<String> OS_VERSION = AttributeKey.stringKey("os.version"); | ||
|
|
||
| private IncubatingAttributes() {} | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation in copying instead of depending?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a policy that library instrumentation must not depend on incubating libraries - all other contrib modules do that too