remove opentelemetry.

This commit is contained in:
fiatjaf
2024-08-02 15:41:29 -03:00
parent 1f1b72a00a
commit 0dd8c38a95
13 changed files with 2 additions and 188 deletions

View File

@@ -6,15 +6,9 @@ import (
"html/template"
"net/http"
"strings"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
)
func renderProfile(ctx context.Context, w http.ResponseWriter, code string) {
ctx, span := tracer.Start(ctx, "render-profile", trace.WithAttributes(attribute.String("code", code)))
defer span.End()
isSitemap := false
if strings.HasSuffix(code, ".xml") {
code = code[:len(code)-4]