mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 06:55:58 +08:00
fix: allow unspecified key type
This commit is contained in:
parent
99f863f444
commit
0cf56d8247
@ -293,7 +293,7 @@ func (a AttributeKey) Validate() error {
|
|||||||
|
|
||||||
if a.IsColumn {
|
if a.IsColumn {
|
||||||
switch a.Type {
|
switch a.Type {
|
||||||
case AttributeKeyTypeResource, AttributeKeyTypeTag:
|
case AttributeKeyTypeResource, AttributeKeyTypeTag, AttributeKeyTypeUnspecified:
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("invalid attribute type: %s", a.Type)
|
return fmt.Errorf("invalid attribute type: %s", a.Type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user