opentelemetry-resource-detector-aws 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 429116d05599cffc09f1eec4a3388814253324212b2e6b96eca00d3df44e64e3
4
- data.tar.gz: 747b2f8a7f85f136b0fe444131715b4c4c9ca71bd8f984f84112d61aaf24f208
3
+ metadata.gz: cbdc3bfc649f5fc8d6cc96937740f38f79d9a70b43b7be59e5fe5ac9b86c5f9d
4
+ data.tar.gz: 8ac202b839e8e0d512e07026da18df844effd752e827d8235d4ef6a0de4a048d
5
5
  SHA512:
6
- metadata.gz: ef158a34cdf6ca5e64a7f7099ed945f275edd5abb593fa6bb1703c4689f540a362b1ce14e15f044b996bd484ac4a3a7be2afb0c9dbf779c87459d19835a210c5
7
- data.tar.gz: 3dca5b641f81304876fe9fdb666c2d1bdc36941319abfbe48cc0adb02a49a0d35c54acca51fa2faba9d8c3785581acd7ecbc691d084e168908f8fefa51902014
6
+ metadata.gz: f5cd710a74def460fe6402225d591739920dfdf809a5a8565e8fbeaf9d51897f4301a0890343848fae85385dd9bcf0e37d865fafec70a99accd4a4985077106b
7
+ data.tar.gz: 2896945f36460473704a72db2013d8193c04608025ff06b871e2271a2dbdba0b8b1259d9117455447dbd1a6ba10eccaa060c636904829222cf445db904893e07
data/README.md CHANGED
@@ -46,10 +46,11 @@ end
46
46
  ### AWS EC2 Detector
47
47
 
48
48
  <!-- cspell:ignore Fargate -->
49
+
49
50
  Populates `cloud` and `host` for processes running on Amazon EC2, including abstractions such as ECS on EC2. Notably, it does not populate anything on AWS Fargate.
50
51
 
51
52
  | Resource Attribute | Description |
52
- |--------------------|-------------|
53
+ | ------------------ | ----------- |
53
54
  | `cloud.account.id` | Value of `accountId` from `/latest/dynamic/instance-identity/document` request |
54
55
  | `cloud.availability_zone` | Value of `availabilityZone` from `/latest/dynamic/instance-identity/document` request |
55
56
  | `cloud.platform` | The cloud platform. In this context, it's always "aws_ec2" |
@@ -63,8 +64,9 @@ Populates `cloud` and `host` for processes running on Amazon EC2, including abst
63
64
 
64
65
  <!-- cspell:ignore launchtype awslogs -->
65
66
  Populates `cloud`, `container`, and AWS ECS-specific attributes for processes running on Amazon ECS.
67
+
66
68
  | Resource Attribute | Description |
67
- |--------------------|-------------|
69
+ | ------------------ | ----------- |
68
70
  | `cloud.platform` | The cloud platform. In this context, it's always "aws_ecs" |
69
71
  | `cloud.provider` | The cloud provider. In this context, it's always "aws" |
70
72
  | `container.id` | The container ID from the `/proc/self/cgroup` file |
@@ -80,22 +82,26 @@ Populates `cloud`, `container`, and AWS ECS-specific attributes for processes ru
80
82
  ### AWS EKS Detector
81
83
 
82
84
  Populates `cloud`, `container`, and Kubernetes (k8s) attributes for processes running on Amazon EKS.
85
+
83
86
  | Resource Attribute | Description |
84
- |--------------------|-------------|
87
+ | ------------------ | ----------- |
85
88
  | `cloud.platform` | The cloud platform. In this context, it's always "aws_eks" |
86
89
  | `cloud.provider` | The cloud provider. In this context, it's always "aws" |
87
90
  | `container.id` | The container ID from the `/proc/self/cgroup` file |
88
91
  | `k8s.cluster.name` | The name of the EKS cluster from the `cluster-info` config map in the `amazon-cloudwatch` namespace |
89
92
 
90
93
  The EKS detector verifies that the process is running on EKS by checking:
94
+
91
95
  1. Presence of Kubernetes service account token and certificate
92
96
  2. Ability to access the `aws-auth` config map in the `kube-system` namespace
93
97
  3. Availability of either cluster name or container ID
94
98
 
95
99
  ### AWS Lambda Detector
100
+
96
101
  Populates `cloud` and `faas` (Function as a Service) attributes for processes running on AWS Lambda.
102
+
97
103
  | Resource Attribute | Description |
98
- |--------------------|-------------|
104
+ | ------------------ | ----------- |
99
105
  | `cloud.platform` | The cloud platform. In this context, it's always "aws_lambda" |
100
106
  | `cloud.provider` | The cloud provider. In this context, it's always "aws" |
101
107
  | `cloud.region` | The AWS region from the `AWS_REGION` environment variable |
@@ -102,7 +102,7 @@ module OpenTelemetry
102
102
  # Extracting logging-related resource attributes
103
103
  #
104
104
  # @param container_metadata [Hash] Container metadata from ECS metadata endpoint
105
- # @returhn [Hash] Resource attributes for logging configuration
105
+ # @return [Hash] Resource attributes for logging configuration
106
106
  def get_logs_resource(container_metadata)
107
107
  log_attributes = {}
108
108
 
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Resource
9
9
  module Detector
10
10
  module AWS
11
- VERSION = '0.5.0'
11
+ VERSION = '0.6.0'
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-resource-detector-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-10-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: opentelemetry-sdk
@@ -44,8 +43,11 @@ files:
44
43
  homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
45
44
  licenses:
46
45
  - Apache-2.0
47
- metadata: {}
48
- post_install_message:
46
+ metadata:
47
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-resource-detector-aws/0.6.0/file/CHANGELOG.md
48
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-resource-detector-aws/v0.6.0/resources/aws
49
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
50
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-resource-detector-aws/0.6.0
49
51
  rdoc_options: []
50
52
  require_paths:
51
53
  - lib
@@ -53,15 +55,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
55
  requirements:
54
56
  - - ">="
55
57
  - !ruby/object:Gem::Version
56
- version: '3.2'
58
+ version: '3.3'
57
59
  required_rubygems_version: !ruby/object:Gem::Requirement
58
60
  requirements:
59
61
  - - ">="
60
62
  - !ruby/object:Gem::Version
61
63
  version: '0'
62
64
  requirements: []
63
- rubygems_version: 3.4.19
64
- signing_key:
65
+ rubygems_version: 4.0.6
65
66
  specification_version: 4
66
67
  summary: AWS resource detector for OpenTelemetry
67
68
  test_files: []