mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 09:38:59 +08:00
dataType constant strings
This commit is contained in:
parent
2f17898390
commit
4825ed6e5f
@ -99,30 +99,37 @@ func GetOrDefaultEnv(key string, fallback string) string {
|
|||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
STRING = "String"
|
||||||
|
UINT32 = "UInt32"
|
||||||
|
LOWCARDINALITY_STRING = "LowCardinality(String)"
|
||||||
|
INT32 = "Int32"
|
||||||
|
)
|
||||||
|
|
||||||
var StaticInterestingLogFields = []model.LogField{
|
var StaticInterestingLogFields = []model.LogField{
|
||||||
{
|
{
|
||||||
Name: "trace_id",
|
Name: "trace_id",
|
||||||
DataType: "String",
|
DataType: STRING,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "span_id",
|
Name: "span_id",
|
||||||
DataType: "String",
|
DataType: STRING,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "trace_flags",
|
Name: "trace_flags",
|
||||||
DataType: "UInt32",
|
DataType: UINT32,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "severity_text",
|
Name: "severity_text",
|
||||||
DataType: "LowCardinality(String)",
|
DataType: LOWCARDINALITY_STRING,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "severity_number",
|
Name: "severity_number",
|
||||||
DataType: "Int32",
|
DataType: INT32,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -130,12 +137,12 @@ var StaticInterestingLogFields = []model.LogField{
|
|||||||
var StaticSelectedLogFields = []model.LogField{
|
var StaticSelectedLogFields = []model.LogField{
|
||||||
{
|
{
|
||||||
Name: "timestamp",
|
Name: "timestamp",
|
||||||
DataType: "UInt64",
|
DataType: UINT32,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "id",
|
Name: "id",
|
||||||
DataType: "String",
|
DataType: STRING,
|
||||||
Type: Static,
|
Type: Static,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user