Open shuqingzai opened 3 months ago
When PrepareStmt: true is set in gorm, the assertion fails, resulting in the inability to use metrics
PrepareStmt: true
See: Caches Prepared Statement
source: https://github.com/uptrace/opentelemetry-go-extra/blob/e41a0f223a916c275b50432d96bf88874c899faf/otelgorm/otelgorm.go#L58
When
PrepareStmt: true
is set in gorm, the assertion fails, resulting in the inability to use metricsSee: Caches Prepared Statement
source: https://github.com/uptrace/opentelemetry-go-extra/blob/e41a0f223a916c275b50432d96bf88874c899faf/otelgorm/otelgorm.go#L58