-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add semantic conventions for heroku (#3075)
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
- Loading branch information
Showing
6 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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,25 @@ | ||
groups: | ||
- id: heroku | ||
prefix: heroku | ||
type: resource | ||
brief: > | ||
Heroku dyno metadata | ||
attributes: | ||
- id: release.creation_timestamp | ||
type: string | ||
brief: > | ||
Time and date the release was created | ||
examples: [ '2022-10-23T18:00:42Z' ] | ||
requirement_level: optional | ||
- id: release.commit | ||
type: string | ||
brief: > | ||
Commit hash for the current release | ||
examples: [ 'e6134959463efd8966b20e75b913cafe3f5ec' ] | ||
requirement_level: optional | ||
- id: app.id | ||
type: string | ||
brief: > | ||
Unique identifier for the application | ||
examples: [ '2daa2797-e42b-4624-9322-ec3f968df4da' ] | ||
requirement_level: optional |
This file contains 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 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
30 changes: 30 additions & 0 deletions
30
specification/resource/semantic_conventions/cloud_provider/heroku.md
This file contains 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,30 @@ | ||
# Heroku | ||
|
||
**Status**: [Experimental](../../../document-status.md) | ||
|
||
**type:** `heroku` | ||
|
||
**Description:** [Heroku dyno metadata] | ||
|
||
<!-- semconv heroku --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| `heroku.release.creation_timestamp` | string | Time and date the release was created | `2022-10-23T18:00:42Z` | Optional | | ||
| `heroku.release.commit` | string | Commit hash for the current release | `e6134959463efd8966b20e75b913cafe3f5ec` | Optional | | ||
| `heroku.app.id` | string | Unique identifier for the application | `2daa2797-e42b-4624-9322-ec3f968df4da` | Optional | | ||
<!-- endsemconv --> | ||
|
||
**Mapping:** | ||
|
||
| Dyno metadata environment variable | Resource attribute | | ||
|------------------------------------|-------------------------------------| | ||
| `HEROKU_APP_ID` | `heroku.app.id` | | ||
| `HEROKU_APP_NAME` | `service.name` | | ||
| `HEROKU_DYNO_ID` | `service.instance.id` | | ||
| `HEROKU_RELEASE_CREATED_AT` | `heroku.release.creation_timestamp` | | ||
| `HEROKU_RELEASE_VERSION` | `service.version` | | ||
| `HEROKU_SLUG_COMMIT` | `heroku.release.commit` | | ||
|
||
Additionally, [the `cloud.provider` resource attribute MUST be set to `heroku`](../cloud.md). | ||
|
||
[Heroku dyno metadata]: https://devcenter.heroku.com/articles/dyno-metadata |