Skip to content

Commit

Permalink
rename telemetry traces to be compliant with all plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianco95 committed Jan 14, 2025
1 parent 8e07d0b commit efcc981
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/slurm/Create.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
func (h *SidecarHandler) SubmitHandler(w http.ResponseWriter, r *http.Request) {
start := time.Now().UnixMicro()
tracer := otel.Tracer("interlink-API")
spanCtx, span := tracer.Start(h.Ctx, "CreateSLURM", trace.WithAttributes(
spanCtx, span := tracer.Start(h.Ctx, "Create", trace.WithAttributes(
attribute.Int64("start.timestamp", start),
))
defer span.End()
Expand Down
2 changes: 1 addition & 1 deletion pkg/slurm/Delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
func (h *SidecarHandler) StopHandler(w http.ResponseWriter, r *http.Request) {
start := time.Now().UnixMicro()
tracer := otel.Tracer("interlink-API")
spanCtx, span := tracer.Start(h.Ctx, "DeleteSLURM", trace.WithAttributes(
spanCtx, span := tracer.Start(h.Ctx, "Delete", trace.WithAttributes(
attribute.Int64("start.timestamp", start),
))
defer span.End()
Expand Down
2 changes: 1 addition & 1 deletion pkg/slurm/GetLogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (h *SidecarHandler) GetLogsFollowMode(
func (h *SidecarHandler) GetLogsHandler(w http.ResponseWriter, r *http.Request) {
start := time.Now().UnixMicro()
tracer := otel.Tracer("interlink-API")
spanCtx, span := tracer.Start(h.Ctx, "GetLogsSLURM", trace.WithAttributes(
spanCtx, span := tracer.Start(h.Ctx, "GetLogs", trace.WithAttributes(
attribute.Int64("start.timestamp", start),
))
defer span.End()
Expand Down
2 changes: 1 addition & 1 deletion pkg/slurm/Status.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
func (h *SidecarHandler) StatusHandler(w http.ResponseWriter, r *http.Request) {
start := time.Now().UnixMicro()
tracer := otel.Tracer("interlink-API")
spanCtx, span := tracer.Start(h.Ctx, "StatusSLURM", trace.WithAttributes(
spanCtx, span := tracer.Start(h.Ctx, "Status", trace.WithAttributes(
attribute.Int64("start.timestamp", start),
))
defer span.End()
Expand Down

0 comments on commit efcc981

Please sign in to comment.