Skip to content

Commit

Permalink
use faas.instance instead of faas.id, and bump e2e test image (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole authored Aug 15, 2023
1 parent 5d1e729 commit b0ca7de
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cloudbuild-e2e-cloud-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ steps:

logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs
substitutions:
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.16.0
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-python-e2e-test-server:${SHORT_SHA}
2 changes: 1 addition & 1 deletion cloudbuild-e2e-gce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ steps:

logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs
substitutions:
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.16.0
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-python-e2e-test-server:${SHORT_SHA}
2 changes: 1 addition & 1 deletion cloudbuild-e2e-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ steps:

logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs
substitutions:
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.16.0
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-python-e2e-test-server:${SHORT_SHA}
2 changes: 1 addition & 1 deletion cloudbuild-e2e-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ steps:

logsBucket: gs://opentelemetry-ops-e2e-cloud-build-logs
substitutions:
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.16.0
_TEST_RUNNER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-e2e-testing:0.17.0
_TEST_SERVER_IMAGE: gcr.io/${PROJECT_ID}/opentelemetry-operations-python-e2e-test-server:${SHORT_SHA}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_cloudrun_resources():
{
"cloud.platform": "gcp_cloud_run",
"cloud.region": all_metadata["instance"]["region"].split("/")[-1],
"faas.id": all_metadata["instance"]["id"],
"faas.instance": all_metadata["instance"]["id"],
"gcp.resource_type": "cloud_run",
}
)
Expand Down Expand Up @@ -152,7 +152,7 @@ def get_cloudfunctions_resources():
{
"cloud.platform": "gcp_cloud_functions",
"cloud.region": all_metadata["instance"]["region"].split("/")[-1],
"faas.id": all_metadata["instance"]["id"],
"faas.instance": all_metadata["instance"]["id"],
"gcp.resource_type": "cloud_functions",
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_missing_service_name(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_run",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"cloud.zone": "zone",
"cloud.provider": "gcp",
"gcp.resource_type": "cloud_run",
Expand All @@ -260,7 +260,7 @@ def test_environment_empty_strings(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_run",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"faas.name": "",
"faas.version": "",
"cloud.zone": "zone",
Expand All @@ -281,7 +281,7 @@ def test_finding_cloudrun_resources(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_run",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"faas.name": "service",
"faas.version": "revision",
"cloud.zone": "zone",
Expand Down Expand Up @@ -315,7 +315,7 @@ def test_missing_service_name(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_functions",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"cloud.zone": "zone",
"cloud.provider": "gcp",
"gcp.resource_type": "cloud_functions",
Expand All @@ -334,7 +334,7 @@ def test_environment_empty_strings(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_functions",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"faas.name": "",
"faas.version": "",
"cloud.zone": "zone",
Expand All @@ -355,7 +355,7 @@ def test_finding_cloudfunctions_resources(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_functions",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"faas.name": "service",
"faas.version": "revision",
"cloud.zone": "zone",
Expand Down Expand Up @@ -458,7 +458,7 @@ def test_finding_cloudrun_resources(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_run",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"faas.name": "service",
"faas.version": "revision",
"cloud.zone": "zone",
Expand Down Expand Up @@ -489,7 +489,7 @@ def test_finding_cloudfunctions_resources(self, getter):
"cloud.account.id": "project_id",
"cloud.platform": "gcp_cloud_functions",
"cloud.region": "region",
"faas.id": "instance_id",
"faas.instance": "instance_id",
"faas.name": "service",
"faas.version": "revision",
"cloud.zone": "zone",
Expand Down

0 comments on commit b0ca7de

Please sign in to comment.