Skip to content

Commit

Permalink
update heroku following review
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Feb 12, 2023
1 parent d7849bd commit c587794
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,21 @@ groups:
brief: >
Heroku dyno metadata
attributes:
- id: release.version
type: string
brief: >
Identifier for the current release
examples: ['v42']
requirement_level: optional
- id: release.creation_timestamp
- id: creation_timestamp
type: string
brief: >
Time and date the release was created
examples: [ '2022-10-23T18:00:42Z' ]
requirement_level: optional
- id: release.commit
- id: commit
type: string
brief: >
Commit hash for the current release
examples: [ 'e6134959463efd8966b20e75b913cafe3f5ec' ]
requirement_level: optional
- id: app.name
type: string
brief: >
Application name
examples: [ 'foo-app' ]
requirement_level: optional
- id: app.id
- id: id
type: string
brief: >
Unique identifier for the application
examples: [ '2daa2797-e42b-4624-9322-ec3f968df4da' ]
requirement_level: optional
- id: dyno.id
type: string
brief: >
Dyno identifier. Used as host name
examples: [ '2vac3221-f56c-1897-4453-ba4d8638c1ac' ]
requirement_level: optional
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Heroku

**Status**: [Experimental](../../document-status.md)

**type:** `heroku`

**Description:** Heroku dyno metadata [1]

<!-- semconv heroku -->
| Attribute | Type | Description | Examples | Requirement Level |
|---|---|---|---|---|
| `heroku.creation_timestamp` | string | Time and date the release was created | `2022-10-23T18:00:42Z` | Optional |
| `heroku.commit` | string | Commit hash for the current release | `e6134959463efd8966b20e75b913cafe3f5ec` | Optional |
| `heroku.id` | string | Unique identifier for the application | `2daa2797-e42b-4624-9322-ec3f968df4da` | Optional |
<!-- endsemconv -->

**Data mapping:**

| Dyno metadata environment variable | Resource attribute |
|------------------------------------|-----------------------------|
| `HEROKU_APP_ID` | `heroku.id` |
| `HEROKU_APP_NAME` | `service.name` |
| `HEROKU_DYNO_ID` | `service.instance.id` |
| `HEROKU_RELEASE_CREATED_AT` | `heroku.creation_timestamp` |
| `HEROKU_RELEASE_VERSION` | `service.version` |
| `HEROKU_SLUG_COMMIT` | `heroku.commit` |

[1]: https://devcenter.heroku.com/articles/dyno-metadata
18 changes: 0 additions & 18 deletions specification/resource/semantic_conventions/heroku.md

This file was deleted.

0 comments on commit c587794

Please sign in to comment.