Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
grcevski committed May 29, 2024
1 parent b04743b commit 25b1ab8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ oats-test: oats-test-sql oats-test-sql-statement oats-test-sql-other-langs oats-

.PHONY: oats-test-debug
oats-test-debug: oats-prereq
cd test/oats/sql && TESTCASE_BASE_PATH=./yaml TESTCASE_MANUAL_DEBUG=true TESTCASE_TIMEOUT=1h $(GINKGO) -v -r
cd test/oats/redis_other_langs && TESTCASE_BASE_PATH=./yaml TESTCASE_MANUAL_DEBUG=true TESTCASE_TIMEOUT=1h $(GINKGO) -v -r

.PHONY: drone
drone:
Expand Down
5 changes: 4 additions & 1 deletion pkg/internal/export/otel/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ func TraceName(span *request.Span) string {
}
return operation
case request.EventTypeRedisClient:
return fmt.Sprintf("REDIS %s", span.Method)
if span.Method == "" {
return "REDIS"
}
return span.Method
}
return ""
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/components/pythonredis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ FROM python:latest
EXPOSE 8080
RUN apt update
RUN apt install libpq-dev
RUN pip install fastapi uvicorn psycopg2
RUN pip install fastapi uvicorn redis
COPY main.py /main.py
CMD ["uvicorn", "--port", "8080", "--host", "0.0.0.0", "main:app"]

0 comments on commit 25b1ab8

Please sign in to comment.