GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-dart

Provide access to an instance's region from metadata

Open
#392 1 comment 0 reactions 0 assignees View on GitHub
kind/enhancement pkg:gcp
Dominant language
Dart
Stars
548
Forks
49
Avg merge
53m
Merged PRs (30d)
1

Description

I've found myself carrying around a method to derive a region from `metadata.google.internal`. It's fairly analogous to `projectIdFromMetadataServer` from `package:gcp`

Usage of this method looks like:
```dart
final location = await locationFromMetadataServer();
print(location);
...
// Outputs: us-central1
```

I've scanned through a couple other issues, it looks like #123 is somewhat related, although is potentially larger in scope.

Would this be a welcome contribution, to be added to `package:gcp`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.