Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
chore(deps): update OpenTelemetry and related dependencies
Dmitry Ng3b7c75f9e923
diff --git a/backend/go.mod b/backend/go.modindex b68172e0..d5ca7d59 100644--- a/backend/go.mod+++ b/backend/go.mod@@ -60,32 +60,32 @@ require (github.com/vxcontrol/langchaingo v0.1.14-update.8github.com/wasilibs/go-re2 v1.10.0github.com/xeipuuv/gojsonschema v1.2.0- go.opentelemetry.io/otel v1.44.0- go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.14.0+ go.opentelemetry.io/otel v1.45.0+ go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0- go.opentelemetry.io/otel/log v0.14.0- go.opentelemetry.io/otel/metric v1.44.0- go.opentelemetry.io/otel/sdk v1.44.0- go.opentelemetry.io/otel/sdk/log v0.14.0- go.opentelemetry.io/otel/sdk/metric v1.44.0- go.opentelemetry.io/otel/trace v1.44.0- go.opentelemetry.io/proto/otlp v1.10.0+ go.opentelemetry.io/otel/log v0.21.0+ go.opentelemetry.io/otel/metric v1.45.0+ go.opentelemetry.io/otel/sdk v1.45.0+ go.opentelemetry.io/otel/sdk/log v0.21.0+ go.opentelemetry.io/otel/sdk/metric v1.45.0+ go.opentelemetry.io/otel/trace v1.45.0+ go.opentelemetry.io/proto/otlp v1.11.0golang.org/x/crypto v0.55.0golang.org/x/net v0.58.0golang.org/x/oauth2 v0.36.0golang.org/x/sync v0.22.0golang.org/x/sys v0.47.0golang.org/x/term v0.45.0- google.golang.org/api v0.264.0- google.golang.org/grpc v1.83.2+ google.golang.org/api v0.278.0+ google.golang.org/grpc v1.84.0gopkg.in/yaml.v3 v3.0.1)require (cloud.google.com/go v0.123.0 // indirectcloud.google.com/go/aiplatform v1.114.0 // indirect- cloud.google.com/go/auth v0.18.2 // indirect+ cloud.google.com/go/auth v0.20.0 // indirectcloud.google.com/go/auth/oauth2adapt v0.2.8 // indirectcloud.google.com/go/compute/metadata v0.9.0 // indirectcloud.google.com/go/longrunning v0.8.0 // indirect@@ -129,11 +129,11 @@ require (github.com/dlclark/regexp2 v1.11.5 // indirectgithub.com/docker/go-connections v0.7.0 // indirectgithub.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect- github.com/felixge/httpsnoop v1.0.4 // indirect+ github.com/felixge/httpsnoop v1.1.0 // indirectgithub.com/gabriel-vasile/mimetype v1.4.9 // indirectgithub.com/gin-contrib/sse v1.0.0 // indirectgithub.com/go-jose/go-jose/v4 v4.1.4 // indirect- github.com/go-logr/logr v1.4.3 // indirect+ github.com/go-logr/logr v1.4.4 // indirectgithub.com/go-logr/stdr v1.2.2 // indirectgithub.com/go-openapi/jsonpointer v0.21.0 // indirectgithub.com/go-openapi/jsonreference v0.21.0 // indirect@@ -146,13 +146,13 @@ require (github.com/google/go-cmp v0.7.0 // indirectgithub.com/google/go-querystring v1.1.0 // indirectgithub.com/google/s2a-go v0.1.9 // indirect- github.com/googleapis/enterprise-certificate-proxy v0.3.11 // indirect- github.com/googleapis/gax-go/v2 v2.17.0 // indirect+ github.com/googleapis/enterprise-certificate-proxy v0.3.15 // indirect+ github.com/googleapis/gax-go/v2 v2.22.0 // indirectgithub.com/gorilla/context v1.1.2 // indirectgithub.com/gorilla/css v1.0.1 // indirectgithub.com/gorilla/securecookie v1.1.2 // indirectgithub.com/gorilla/sessions v1.2.2 // indirect- github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect+ github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 // indirectgithub.com/jackc/pgpassfile v1.0.0 // indirectgithub.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirectgithub.com/jackc/puddle/v2 v2.2.2 // indirect@@ -213,7 +213,7 @@ require (gitlab.com/golang-commonmark/mdurl v0.0.0-20191124015652-932350d1cb84 // indirectgitlab.com/golang-commonmark/puny v0.0.0-20191124015043-9f83538fa04f // indirectgo.opentelemetry.io/auto/sdk v1.2.1 // indirect- go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect+ go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 // indirectgo.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 // indirectgo.uber.org/multierr v1.11.0 // indirectgolang.org/x/arch v0.15.0 // indirect@@ -221,8 +221,8 @@ require (golang.org/x/text v0.41.0 // indirectgolang.org/x/tools v0.48.0 // indirectgoogle.golang.org/genai v1.42.0 // indirect- google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa // indirect- google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect+ google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d // indirect+ google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d // indirectgoogle.golang.org/protobuf v1.36.11 // indirectnhooyr.io/websocket v1.8.7 // indirect)diff --git a/backend/go.sum b/backend/go.sumindex bdf7c6b6..be801bc9 100644--- a/backend/go.sum+++ b/backend/go.sum@@ -2,8 +2,8 @@ cloud.google.com/go v0.123.0 h1:2NAUJwPR47q+E35uaJeYoNhuNEM9kM8SjgRgdeOJUSE=cloud.google.com/go v0.123.0/go.mod h1:xBoMV08QcqUGuPW65Qfm1o9Y4zKZBpGS+7bImXLTAZU=cloud.google.com/go/aiplatform v1.114.0 h1:TCrSLci+NFEAx0PZMv8btGe5j68RivArmDJbBLIc/3o=cloud.google.com/go/aiplatform v1.114.0/go.mod h1:W5yMrpIuHG/CSK8iF7XnwIfCJu6dcLRQ0cTqGR5vwwE=-cloud.google.com/go/auth v0.18.2 h1:+Nbt5Ev0xEqxlNjd6c+yYUeosQ5TtEUaNcN/3FozlaM=-cloud.google.com/go/auth v0.18.2/go.mod h1:xD+oY7gcahcu7G2SG2DsBerfFxgPAJz17zz2joOFF3M=+cloud.google.com/go/auth v0.20.0 h1:kXTssoVb4azsVDoUiF8KvxAqrsQcQtB53DcSgta74CA=+cloud.google.com/go/auth v0.20.0/go.mod h1:942/yi/itH1SsmpyrbnTMDgGfdy2BUqIKyd0cyYLc5Q=cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc=cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c=cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs=@@ -205,8 +205,8 @@ github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 h1:Yzb9+7DPgithub.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5/go.mod h1:a2zkGnVExMxdzMo3M0Hi/3sEU+cWnZpSni0O6/Yb/P0=github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=-github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=-github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=+github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc=+github.com/felixge/httpsnoop v1.1.0/go.mod h1:Zqxgdd+1Rkcz8euOqdr7lqgCRJztwr5hp9vDSi5UZCE=github.com/gabriel-vasile/mimetype v1.4.9 h1:5k+WDwEsD9eTLL8Tz3L0VnmVh9QxGjRmjBvAG7U/oYY=github.com/gabriel-vasile/mimetype v1.4.9/go.mod h1:WnSQhFKJuBlRyLiKohA/2DtIlPFAbguNaG7QCHcyGok=github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=@@ -236,8 +236,8 @@ github.com/go-faster/errors v0.6.1/go.mod h1:5MGV2/2T9yvlrbhe9pD9LO5Z/2zCSq2T8j+github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA=github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=-github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=-github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=+github.com/go-logr/logr v1.4.4 h1:tG4xh9yMsRCAiodLVTxyrkzSZ9+o0L1Kg/+cPVcbP/8=+github.com/go-logr/logr v1.4.4/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=@@ -316,10 +316,10 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUgithub.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=-github.com/googleapis/enterprise-certificate-proxy v0.3.11 h1:vAe81Msw+8tKUxi2Dqh/NZMz7475yUvmRIkXr4oN2ao=-github.com/googleapis/enterprise-certificate-proxy v0.3.11/go.mod h1:RFV7MUdlb7AgEq2v7FmMCfeSMCllAzWxFgRdusoGks8=-github.com/googleapis/gax-go/v2 v2.17.0 h1:RksgfBpxqff0EZkDWYuz9q/uWsTVz+kf43LsZ1J6SMc=-github.com/googleapis/gax-go/v2 v2.17.0/go.mod h1:mzaqghpQp4JDh3HvADwrat+6M3MOIDp5YKHhb9PAgDY=+github.com/googleapis/enterprise-certificate-proxy v0.3.15 h1:xolVQTEXusUcAA5UgtyRLjelpFFHWlPQ4XfWGc7MBas=+github.com/googleapis/enterprise-certificate-proxy v0.3.15/go.mod h1:vqVt9yG9480NtzREnTlmGSBmFrA+bzb0yl0TxoBQXOg=+github.com/googleapis/gax-go/v2 v2.22.0 h1:PjIWBpgGIVKGoCXuiCoP64altEJCj3/Ei+kSU5vlZD4=+github.com/googleapis/gax-go/v2 v2.22.0/go.mod h1:irWBbALSr0Sk3qlqb9SyJ1h68WjgeFuiOzI4Rqw5+aY=github.com/goph/emperror v0.17.2 h1:yLapQcmEsO0ipe9p5TaN22djm3OFV/TfM/fcYP0/J18=github.com/goph/emperror v0.17.2/go.mod h1:+ZbQ+fUNO/6FNiUo0ujtMjhgad9Xa6fQL9KhH4LNHic=github.com/gorilla/context v1.1.2 h1:WRkNAv2uoa03QNIc1A6u4O7DAGMUVoopZhkiXWA2V1o=@@ -333,8 +333,8 @@ github.com/gorilla/sessions v1.2.2/go.mod h1:ePLdVu+jbEgHH+KWw8I1z2wqd0BAdAQh/8Lgithub.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=-github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 h1:HWRh5R2+9EifMyIHV7ZV+MIZqgz+PMpZ14Jynv3O2Zs=-github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0/go.mod h1:JfhWUomR1baixubs02l85lZYYOm7LV6om4ceouMv45c=+github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0 h1:5VipnvEpbqr2gA2VbM+nYVbkIF28c5ZQfqCBQ5g2xfk=+github.com/grpc-ecosystem/grpc-gateway/v2 v2.29.0/go.mod h1:Hyl3n6Twe1hvtd9XUXDec4pTvgMSEixRuQKPTMH2bNs=github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=@@ -668,38 +668,38 @@ gitlab.com/opennota/wd v0.0.0-20180912061657-c5d65f63c638 h1:uPZaMiz6Sz0PZs3IZJWgitlab.com/opennota/wd v0.0.0-20180912061657-c5d65f63c638/go.mod h1:EGRJaqe2eO9XGmFtQCvV3Lm9NLico3UhFwUpCG/+mVU=go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 h1:q4XOmH/0opmeuJtPsbFNivyl7bCt7yRBbeEm2sC/XtQ=-go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0/go.mod h1:snMWehoOh2wsEwnvvwtDyFCxVeDAODenXHtn5vzrKjo=-go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 h1:F7Jx+6hwnZ41NSFTO5q4LYDtJRXBf2PD0rNBkeB/lus=-go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0/go.mod h1:UHB22Z8QsdRDrnAtX4PntOl36ajSxcdUMt1sF7Y6E7Q=-go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU=-go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc=-go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.14.0 h1:OMqPldHt79PqWKOMYIAQs3CxAi7RLgPxwfFSwr4ZxtM=-go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.14.0/go.mod h1:1biG4qiqTxKiUCtoWDPpL3fB3KxVwCiGw81j3nKMuHE=+go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0 h1:yI1/OhfEPy7J9eoa6Sj051C7n5dvpj0QX8g4sRchg04=+go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0/go.mod h1:NoUCKYWK+3ecatC4HjkRktREheMeEtrXoQxrqYFeHSc=+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0 h1:8tvICD4vSTOOsNrsI4Ljf6C+6UKvpTEH5XY3JMoyPoo=+go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.69.0/go.mod h1:z9+yiacE0IHRqM4qFfkbt/JYlmYXgss8GY/jXoNuPJI=+go.opentelemetry.io/otel v1.45.0 h1:pdrWmLHofpubmArBv1LgFSv1Z0Ie/ppdZzu+kUN5EeU=+go.opentelemetry.io/otel v1.45.0/go.mod h1:XZxIqPapzEYnhNSScF5DIqXhm/rYi0FzCe2XddAwZfQ=+go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0 h1:WseeVYf5dJZTsyPiyW5L14k5qsSibqXAMTSiFEDiWr0=+go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.21.0/go.mod h1:SiLZnQS6Qk2eCpvr2CH/XMAOa64TWGXxEZJZCpD2Lmc=go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0 h1:cEf8jF6WbuGQWUVcqgyWtTR0kOOAWY1DYZ+UhvdmQPw=go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.39.0/go.mod h1:k1lzV5n5U3HkGvTCJHraTAGJ7MqsgL1wrGwTj1Isfiw=go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 h1:88Y4s2C8oTui1LGM6bTWkw0ICGcOLCAI5l6zsD1j20k=go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0/go.mod h1:Vl1/iaggsuRlrHf/hfPJPvVag77kKyvrLeD10kpMl+A=go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 h1:in9O8ESIOlwJAEGTkkf34DesGRAc/Pn8qJ7k3r/42LM=go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0/go.mod h1:Rp0EXBm5tfnv0WL+ARyO/PHBEaEAT8UUHQ6AGJcSq6c=-go.opentelemetry.io/otel/log v0.14.0 h1:2rzJ+pOAZ8qmZ3DDHg73NEKzSZkhkGIua9gXtxNGgrM=-go.opentelemetry.io/otel/log v0.14.0/go.mod h1:5jRG92fEAgx0SU/vFPxmJvhIuDU9E1SUnEQrMlJpOno=-go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc=-go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo=-go.opentelemetry.io/otel/metric/x v0.66.0 h1:YkCrx1zLOChi9ZcZ6euupOcsgzbVlec7D/xoEU1+cTA=-go.opentelemetry.io/otel/metric/x v0.66.0/go.mod h1:d1+BDj9t96do0/1LoU1ayfCv79ZgNE41qbhBvnMOBZk=-go.opentelemetry.io/otel/sdk v1.44.0 h1:nHYwb9lK+fJPU/dnT6s7W7Z8itMWyqrnVfbheVYrZ58=-go.opentelemetry.io/otel/sdk v1.44.0/go.mod h1:Osuydd3Se74nqjAKxid74N5eC+jfEqfTegHRnq58oK0=-go.opentelemetry.io/otel/sdk/log v0.14.0 h1:JU/U3O7N6fsAXj0+CXz21Czg532dW2V4gG1HE/e8Zrg=-go.opentelemetry.io/otel/sdk/log v0.14.0/go.mod h1:imQvII+0ZylXfKU7/wtOND8Hn4OpT3YUoIgqJVksUkM=-go.opentelemetry.io/otel/sdk/log/logtest v0.14.0 h1:Ijbtz+JKXl8T2MngiwqBlPaHqc4YCaP/i13Qrow6gAM=-go.opentelemetry.io/otel/sdk/log/logtest v0.14.0/go.mod h1:dCU8aEL6q+L9cYTqcVOk8rM9Tp8WdnHOPLiBgp0SGOA=-go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRks6si09iEfI=-go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA=-go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk=-go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE=-go.opentelemetry.io/proto/otlp v1.10.0 h1:IQRWgT5srOCYfiWnpqUYz9CVmbO8bFmKcwYxpuCSL2g=-go.opentelemetry.io/proto/otlp v1.10.0/go.mod h1:/CV4QoCR/S9yaPj8utp3lvQPoqMtxXdzn7ozvvozVqk=+go.opentelemetry.io/otel/log v0.21.0 h1:SLsVDGmtyBrdw8/a2Z0bOIxou/+bN4z56GebH7T0LvA=+go.opentelemetry.io/otel/log v0.21.0/go.mod h1:iReetQrZL9Wyg84cCkOoCmqDHS5RCFfyxC7J+r8fn8g=+go.opentelemetry.io/otel/metric v1.45.0 h1:7Eg1uH7CJ5cXv9is6tnBe1FI6rj1nwUdbFypRm3br/M=+go.opentelemetry.io/otel/metric v1.45.0/go.mod h1:HAPbm1nd3p1PmFH7v2dR+6BjXxw+Lq4a2+pndMAm08s=+go.opentelemetry.io/otel/metric/x v0.67.0 h1:PcicCNZFkZ4bXfSooXdo3WN7RBOVOtjVdo1wD358Uns=+go.opentelemetry.io/otel/metric/x v0.67.0/go.mod h1:FBjCWZe6wgcqxcMtjdGiClDKXb2YxxXii0CXftE4QtI=+go.opentelemetry.io/otel/sdk v1.45.0 h1:4VVSMgQ83dUgW2aoX5f6JgLvHwIvzcuLnF9lUdCSpCw=+go.opentelemetry.io/otel/sdk v1.45.0/go.mod h1:Sr40LgXV7DsKMMJMKOhUWOgMWTfAaqvm2kF0g7ilwuA=+go.opentelemetry.io/otel/sdk/log v0.21.0 h1:QsE7XSR0ktQdKmRKGnR+f1ObGF32WG+7MER/P9KgmYc=+go.opentelemetry.io/otel/sdk/log v0.21.0/go.mod h1:m9mApjCoD2/1QuKCAptjv+BrG9WKOvQLVdNx+iBldTo=+go.opentelemetry.io/otel/sdk/log/logtest v0.21.0 h1:X+JBBgKlswCGYsmgL0CnoUUtlE//VB345c84jYAYkdQ=+go.opentelemetry.io/otel/sdk/log/logtest v0.21.0/go.mod h1:HD1575K8e6sIFBBDd5tZB3t9DlMytWXq9FuR+Y4rfjE=+go.opentelemetry.io/otel/sdk/metric v1.45.0 h1:oVFszMfyj1Am6s24Vtc7wBb8BKLcwepJjNEYILuiE3o=+go.opentelemetry.io/otel/sdk/metric v1.45.0/go.mod h1:vUWUxDZvu1WVRj8JA8S0AdhsPrZoDpA2DdZauIh4mDA=+go.opentelemetry.io/otel/trace v1.45.0 h1:l/mP6Uv7oNO7/TblbhpbgMidxhq1uO/rPsikOyVhxag=+go.opentelemetry.io/otel/trace v1.45.0/go.mod h1:qoJJA2xNMnxRrdISU/kLtfUH2wNeQbiv+jhs/CxI8bc=+go.opentelemetry.io/proto/otlp v1.11.0 h1:5rrYs0Ykyj50sdU/JU0x8etU+LubXWb+gED6TbEdMIk=+go.opentelemetry.io/proto/otlp v1.11.0/go.mod h1:SmVizdCOAm3XBtG1g1NnOdhW6jtddT72hLMhv8VwA8E=go.starlark.net v0.0.0-20230302034142-4b1e35fe2254 h1:Ss6D3hLXTM0KobyBYEAygXzFfGcjnmfEJOBgSbemCtg=go.starlark.net v0.0.0-20230302034142-4b1e35fe2254/go.mod h1:jxU+3+j+71eXOW14274+SmmuW82qJzl6iZSeqEtTGds=go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=@@ -809,8 +809,8 @@ golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=golang.org/x/text v0.41.0/go.mod h1:jvf1O8ajNzZqhSrQBPbutR/EB83Cc0CFrezNQIwbb5M=golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=-golang.org/x/time v0.14.0 h1:MRx4UaLrDotUKUdCIqzPC48t1Y9hANFKIRpNx+Te8PI=-golang.org/x/time v0.14.0/go.mod h1:eL/Oa2bBBK0TkX57Fyni+NgnyQQN4LitPmob2Hjnqw4=+golang.org/x/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U=+golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno=golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=golang.org/x/tools v0.0.0-20190606050223-4d9ae51c2468/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=@@ -825,18 +825,18 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8Tgolang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=gonum.org/v1/gonum v0.17.0 h1:VbpOemQlsSMrYmn7T2OUvQ4dqxQXU+ouZFQsZOx50z4=gonum.org/v1/gonum v0.17.0/go.mod h1:El3tOrEuMpv2UdMrbNlKEh9vd86bmQ6vqIcDwxEOc1E=-google.golang.org/api v0.264.0 h1:+Fo3DQXBK8gLdf8rFZ3uLu39JpOnhvzJrLMQSoSYZJM=-google.golang.org/api v0.264.0/go.mod h1:fAU1xtNNisHgOF5JooAs8rRaTkl2rT3uaoNGo9NS3R8=+google.golang.org/api v0.278.0 h1:W7jiRvRi53VYFfZ/HoZjQBtJk7gOFbHD8ot1RzVZU6E=+google.golang.org/api v0.278.0/go.mod h1:B9TqLBwJqVjp1mtt7WeoQwWRwvu/400y5lETOql+giQ=google.golang.org/genai v1.42.0 h1:XFHfo0DDCzdzQALZoFs6nowAHO2cE95XyVvFLNaFLRY=google.golang.org/genai v1.42.0/go.mod h1:A3kkl0nyBjyFlNjgxIwKq70julKbIxpSxqKO5gw/gmk=-google.golang.org/genproto v0.0.0-20260128011058-8636f8732409 h1:VQZ/yAbAtjkHgH80teYd2em3xtIkkHd7ZhqfH2N9CsM=-google.golang.org/genproto v0.0.0-20260128011058-8636f8732409/go.mod h1:rxKD3IEILWEu3P44seeNOAwZN4SaoKaQ/2eTg4mM6EM=-google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa h1:Kjn0N0tCrDgiAFW+lGO4JZ3ck44CehvJQMAwj9QF0G8=-google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa/go.mod h1:q4lMZS6kskjT5HvCPrnnypcDPVJqT/f4nfxmkE7gryY=-google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa h1:mZHHdPZl0dbGHCflZgAq/Q468DWVFcU2whhB2KAo8fk=-google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=-google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU=-google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8=+google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 h1:XzmzkmB14QhVhgnawEVsOn6OFsnpyxNPRY9QV01dNB0=+google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7/go.mod h1:L43LFes82YgSonw6iTXTxXUX1OlULt4AQtkik4ULL/I=+google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d h1:FarXi840EJWSHYTN3ERkADbPWjl307+FGrA22KAVjjc=+google.golang.org/genproto/googleapis/api v0.0.0-20260803160001-6ac0973c030d/go.mod h1:K/+WGbmBY7aNW1HDw1fJnKYo10i0DkAX6pows00dLig=+google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d h1:IL4hdHzcUv2l/gcg98/Rj3FbtE6axwqslOW8SW0C+S0=+google.golang.org/genproto/googleapis/rpc v0.0.0-20260803160001-6ac0973c030d/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=+google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0=+google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0=google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=diff --git a/backend/pkg/observability/obs.go b/backend/pkg/observability/obs.goindex 8bcd6cab..fb9eedca 100644--- a/backend/pkg/observability/obs.go+++ b/backend/pkg/observability/obs.go@@ -521,45 +521,45 @@ func (obs *observer) makeRecord(entry *logrus.Entry, span oteltrace.Span) otellorecord.SetSeverityText(levelString(entry.Level))spanCtx := span.SpanContext()- attrs := make([]otellog.KeyValue, 0, len(entry.Data)+5)- attrs = append(attrs, otellog.String("trace.id", spanCtx.TraceID().String()))- attrs = append(attrs, otellog.String("span.id", spanCtx.SpanID().String()))+ attrs := make([]attribute.KeyValue, 0, len(entry.Data)+5)+ attrs = append(attrs, attribute.String("trace.id", spanCtx.TraceID().String()))+ attrs = append(attrs, attribute.String("span.id", spanCtx.SpanID().String()))if entry.Caller != nil {if entry.Caller.Function != "" {- attrs = append(attrs, otellog.String(string(semconv.CodeFunctionKey), entry.Caller.Function))+ attrs = append(attrs, attribute.String(string(semconv.CodeFunctionKey), entry.Caller.Function))}if entry.Caller.File != "" {- attrs = append(attrs, otellog.String(string(semconv.CodeFilepathKey), entry.Caller.File))- attrs = append(attrs, otellog.Int64(string(semconv.CodeLineNumberKey), int64(entry.Caller.Line)))+ attrs = append(attrs, attribute.String(string(semconv.CodeFilepathKey), entry.Caller.File))+ attrs = append(attrs, attribute.Int64(string(semconv.CodeLineNumberKey), int64(entry.Caller.Line)))}}for k, v := range entry.Data {if k == "error" {- attrs = append(attrs, otellog.KeyValue{- Key: string(semconv.ExceptionStacktraceKey),+ attrs = append(attrs, attribute.KeyValue{+ Key: semconv.ExceptionStacktraceKey,Value: logValue(getStackTrace()),})switch val := v.(type) {case error:- attrs = append(attrs, otellog.String(string(semconv.ExceptionTypeKey), reflect.TypeOf(val).String()))- attrs = append(attrs, otellog.String(string(semconv.ExceptionMessageKey), val.Error()))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionTypeKey), reflect.TypeOf(val).String()))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionMessageKey), val.Error()))case fmt.Stringer:- attrs = append(attrs, otellog.String(string(semconv.ExceptionTypeKey), reflect.TypeOf(val).String()))- attrs = append(attrs, otellog.String(string(semconv.ExceptionMessageKey), val.String()))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionTypeKey), reflect.TypeOf(val).String()))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionMessageKey), val.String()))case nil:- attrs = append(attrs, otellog.String(string(semconv.ExceptionTypeKey), "empty error type: nil"))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionTypeKey), "empty error type: nil"))default:- attrs = append(attrs, otellog.String(string(semconv.ExceptionTypeKey), reflect.TypeOf(val).String()))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionTypeKey), reflect.TypeOf(val).String()))if errorData, err := json.Marshal(val); err == nil {- attrs = append(attrs, otellog.String(string(semconv.ExceptionMessageKey), string(errorData)))+ attrs = append(attrs, attribute.String(string(semconv.ExceptionMessageKey), string(errorData)))}}continue}- attrs = append(attrs, otellog.KeyValue{Key: k, Value: logValue(v)})+ attrs = append(attrs, attribute.KeyValue{Key: attribute.Key(k), Value: logValue(v)})}record.AddAttributes(attrs...)@@ -653,21 +653,20 @@ func attributeKeyValue(key string, value interface{}) attribute.KeyValue {rv := reflect.ValueOf(value)switch rv.Kind() {- case reflect.Array:- rv = rv.Slice(0, rv.Len())- fallthrough- case reflect.Slice:- switch reflect.TypeOf(value).Elem().Kind() {+ case reflect.Array, reflect.Slice:+ // Copied element by element: an array held in an interface cannot be resliced,+ // and a slice of a named type does not assert to []string or []int.+ switch rv.Type().Elem().Kind() {case reflect.Bool:- return attribute.BoolSlice(key, rv.Interface().([]bool))+ return attribute.BoolSlice(key, elements(rv, reflect.Value.Bool))case reflect.Int:- return attribute.IntSlice(key, rv.Interface().([]int))+ return attribute.IntSlice(key, elements(rv, func(v reflect.Value) int { return int(v.Int()) }))case reflect.Int64:- return attribute.Int64Slice(key, rv.Interface().([]int64))+ return attribute.Int64Slice(key, elements(rv, reflect.Value.Int))case reflect.Float64:- return attribute.Float64Slice(key, rv.Interface().([]float64))+ return attribute.Float64Slice(key, elements(rv, reflect.Value.Float))case reflect.String:- return attribute.StringSlice(key, rv.Interface().([]string))+ return attribute.StringSlice(key, elements(rv, reflect.Value.String))default:return attribute.KeyValue{Key: attribute.Key(key)}}@@ -686,51 +685,56 @@ func attributeKeyValue(key string, value interface{}) attribute.KeyValue {return attribute.String(key, fmt.Sprint(value))}-func logValue(value interface{}) otellog.Value {+func elements[T any](rv reflect.Value, element func(reflect.Value) T) []T {+ out := make([]T, rv.Len())+ for i := range out {+ out[i] = element(rv.Index(i))+ }+ return out+}++func logValue(value interface{}) attribute.Value {switch value := value.(type) {case nil:- return otellog.StringValue("<nil>")+ return attribute.StringValue("<nil>")case string:- return otellog.StringValue(value)+ return attribute.StringValue(value)case int:- return otellog.IntValue(value)+ return attribute.IntValue(value)case int64:- return otellog.Int64Value(value)+ return attribute.Int64Value(value)case uint64:- return otellog.Int64Value(int64(value))+ return attribute.Int64Value(int64(value))case float64:- return otellog.Float64Value(value)+ return attribute.Float64Value(value)case bool:- return otellog.BoolValue(value)+ return attribute.BoolValue(value)case fmt.Stringer:- return otellog.StringValue(value.String())+ return attribute.StringValue(value.String())}rv := reflect.ValueOf(value)switch rv.Kind() {- case reflect.Array:- rv = rv.Slice(0, rv.Len())- fallthrough- case reflect.Slice:- values := make([]otellog.Value, rv.Len())+ case reflect.Array, reflect.Slice:+ values := make([]attribute.Value, rv.Len())for i := range values {values[i] = logValue(rv.Index(i).Interface())}- return otellog.SliceValue(values...)+ return attribute.SliceValue(values...)case reflect.Bool:- return otellog.BoolValue(rv.Bool())+ return attribute.BoolValue(rv.Bool())case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:- return otellog.Int64Value(rv.Int())+ return attribute.Int64Value(rv.Int())case reflect.Float64:- return otellog.Float64Value(rv.Float())+ return attribute.Float64Value(rv.Float())case reflect.String:- return otellog.StringValue(rv.String())+ return attribute.StringValue(rv.String())}if b, err := json.Marshal(value); err == nil {- return otellog.StringValue(string(b))+ return attribute.StringValue(string(b))}- return otellog.StringValue(fmt.Sprint(value))+ return attribute.StringValue(fmt.Sprint(value))}func logSeverity(lvl logrus.Level) otellog.Severity {diff --git a/backend/pkg/observability/obs_test.go b/backend/pkg/observability/obs_test.goindex 459bd5ca..a39127ed 100644--- a/backend/pkg/observability/obs_test.go+++ b/backend/pkg/observability/obs_test.go@@ -3,7 +3,9 @@ package observabilityimport ("context""errors"+ "io""net"+ "sync""sync/atomic""testing""time"@@ -11,10 +13,15 @@ import ("pentagi/pkg/config""pentagi/pkg/observability/langfuse"+ "github.com/sirupsen/logrus"+ "go.opentelemetry.io/otel/attribute"otellog "go.opentelemetry.io/otel/log"otelloggernoop "go.opentelemetry.io/otel/log/noop"otelmetric "go.opentelemetry.io/otel/metric"otelmetricnoop "go.opentelemetry.io/otel/metric/noop"+ sdklog "go.opentelemetry.io/otel/sdk/log"+ sdktrace "go.opentelemetry.io/otel/sdk/trace"+ "go.opentelemetry.io/otel/sdk/trace/tracetest"oteltrace "go.opentelemetry.io/otel/trace"oteltracenoop "go.opentelemetry.io/otel/trace/noop"collogsv1 "go.opentelemetry.io/proto/otlp/collector/logs/v1"@@ -220,3 +227,98 @@ func TestObserverDrain_ReturnsWithinDeadlineWhenSinkBlocks(t *testing.T) {t.Fatal("Drain should report the deadline was hit while a sink was blocked")}}++type recordingLogExporter struct {+ mu sync.Mutex+ records []sdklog.Record+}++func (r *recordingLogExporter) Export(ctx context.Context, records []sdklog.Record) error {+ if err := ctx.Err(); err != nil {+ return err+ }+ r.mu.Lock()+ defer r.mu.Unlock()+ for _, record := range records {+ r.records = append(r.records, record.Clone())+ }+ return nil+}+func (r *recordingLogExporter) Shutdown(context.Context) error { return nil }+func (r *recordingLogExporter) ForceFlush(context.Context) error { return nil }++func TestObs_Fire_ExportsAFieldToTheLogRecordAndTheSpanEvent(t *testing.T) {+ type namedString string++ for name, tc := range map[string]struct {+ value any+ log attribute.Value+ span attribute.Value+ }{+ "a string": {"s", attribute.StringValue("s"), attribute.StringValue("s")},+ "an int slice": {[]int{1, 2},+ attribute.SliceValue(attribute.Int64Value(1), attribute.Int64Value(2)), attribute.IntSliceValue([]int{1, 2})},+ "an int array": {[2]int{1, 2},+ attribute.SliceValue(attribute.Int64Value(1), attribute.Int64Value(2)), attribute.IntSliceValue([]int{1, 2})},+ "a string array": {[2]string{"a", "b"},+ attribute.SliceValue(attribute.StringValue("a"), attribute.StringValue("b")), attribute.StringSliceValue([]string{"a", "b"})},+ "a slice of a named string type": {[]namedString{"a"},+ attribute.SliceValue(attribute.StringValue("a")), attribute.StringSliceValue([]string{"a"})},+ } {+ t.Run(name, func(t *testing.T) {+ logs := &recordingLogExporter{}+ spans := tracetest.NewSpanRecorder()+ obs := &observer{+ levels: logrus.AllLevels,+ logger: sdklog.NewLoggerProvider(sdklog.WithProcessor(sdklog.NewSimpleProcessor(logs))).Logger("test"),+ tracer: sdktrace.NewTracerProvider(sdktrace.WithSpanProcessor(spans)).Tracer("test"),+ }+ logger := logrus.New()+ logger.SetOutput(io.Discard)+ logger.AddHook(obs)++ logger.WithField("value", tc.value).Info("probe")++ if len(logs.records) != 1 {+ t.Fatalf("exported %d log records, want 1", len(logs.records))+ }+ var logged []attribute.Value+ logs.records[0].WalkAttributes(func(kv attribute.KeyValue) bool {+ if kv.Key == "value" {+ logged = append(logged, kv.Value)+ }+ return true+ })+ if len(logged) != 1 || !sameValue(logged[0], tc.log) {+ t.Errorf("log record attribute = %v, want %v", jsonValues(logged), jsonValues([]attribute.Value{tc.log}))+ }++ ended := spans.Ended()+ if len(ended) != 1 || len(ended[0].Events()) != 1 {+ t.Fatalf("want one ended span with one event, got %d spans", len(ended))+ }+ var evented []attribute.Value+ for _, kv := range ended[0].Events()[0].Attributes {+ if kv.Key == "log.value" {+ evented = append(evented, kv.Value)+ }+ }+ if len(evented) != 1 || !sameValue(evented[0], tc.span) {+ t.Errorf("span event attribute = %v, want %v", jsonValues(evented), jsonValues([]attribute.Value{tc.span}))+ }+ })+ }+}++func sameValue(a, b attribute.Value) bool {+ return jsonValues([]attribute.Value{a}) == jsonValues([]attribute.Value{b})+}++func jsonValues(values []attribute.Value) string {+ var out string+ for _, v := range values {+ b, _ := v.MarshalJSON()+ out += string(b)+ }+ return out+}