Skip to content

Commit

Permalink
differnt delimiter [goreleaser]
Browse files Browse the repository at this point in the history
  • Loading branch information
golangisfun123 committed Sep 10, 2024
1 parent 3d6f64e commit b39d3d8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions contrib/opbot/botmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,16 @@ func (b *Bot) requiresSignoz(definition *slacker.CommandDefinition) *slacker.Com
// TODO: add trace middleware.
func (b *Bot) traceCommand() *slacker.CommandDefinition {
return b.requiresSignoz(&slacker.CommandDefinition{
Command: "trace {order} <tags>",
Command: "trace {tags} {order}",

Check warning on line 54 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L54

Added line #L54 was not covered by tests
Description: "find a transaction in signoz",
Examples: []string{
"trace asc transaction_id:0x1234 serviceName:rfq",
"trace a transaction_id:0x1234 serviceName:rfq",
"trace desc transaction_id:0x1234 serviceName:rfq",
"trace d transaction_id:0x1234 serviceName:rfq",
"trace transaction_id:0x1234@serviceName:rfq",
"trace transaction_id:0x1234@serviceName:rfq d",
"trace transaction_id:0x1234@serviceName:rfq desc",

Check warning on line 59 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L57-L59

Added lines #L57 - L59 were not covered by tests
},
Handler: func(ctx *slacker.CommandContext) {
tags := stripLinks(ctx.Request().Param("tags"))
splitTags := strings.Split(tags, " ")
splitTags := strings.Split(tags, "@")

Check warning on line 63 in contrib/opbot/botmd/commands.go

View check run for this annotation

Codecov / codecov/patch

contrib/opbot/botmd/commands.go#L63

Added line #L63 was not covered by tests
if len(splitTags) == 0 {
_, err := ctx.Response().Reply("please provide tags in a key:value format")
if err != nil {
Expand Down

0 comments on commit b39d3d8

Please sign in to comment.