Skip to content

Commit

Permalink
Fix copy/paste error in firmwareInstall() tracing (#211)
Browse files Browse the repository at this point in the history
firmwareInstall() had been erroneously reporting itself as
serverEnroll(), presumably due to copy/pasted code not getting
appropriately modified.
  • Loading branch information
zevweiss authored Jun 27, 2024
1 parent 04969c8 commit 1a43927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/v1/routes/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (r *Routes) serverEnroll(c *gin.Context) (int, *v1types.ServerResponse) {
// @Router /servers/{uuid}/firmwareInstall [post]
func (r *Routes) firmwareInstall(c *gin.Context) (int, *v1types.ServerResponse) {
id := c.Param("uuid")
otelCtx, span := otel.Tracer(pkgName).Start(c.Request.Context(), "Routes.serverEnroll")
otelCtx, span := otel.Tracer(pkgName).Start(c.Request.Context(), "Routes.firmwareInstall")
span.SetAttributes(attribute.KeyValue{Key: "serverId", Value: attribute.StringValue(id)})
defer span.End()

Expand Down

0 comments on commit 1a43927

Please sign in to comment.