Skip to content

Commit

Permalink
Add data to OTel
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Liva <[email protected]>
  • Loading branch information
thisthat committed Oct 6, 2022
1 parent 4cc4e74 commit 7031783
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ import (
)

var (
scheme = runtime.NewScheme()
setupLog = ctrl.Log.WithName("setup")
// TODO: Attach to OTel Resource
scheme = runtime.NewScheme()
setupLog = ctrl.Log.WithName("setup")
gitCommit string
buildTime string
buildVersion string
Expand Down Expand Up @@ -217,8 +216,9 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
semconv.TelemetrySDKLanguageGo,
semconv.ServiceNameKey.String("keptn-lifecycle-operator"),
semconv.ServiceVersionKey.String("v0.1.0"),
semconv.ServiceVersionKey.String(buildVersion+"-"+gitCommit+"-"+buildTime),
),
)
return r
Expand Down

0 comments on commit 7031783

Please sign in to comment.