فهرست منبع

Feature #TASK_QT-18250 增加process_jvm_id字段,兼容i6000

rock 5 ماه پیش
والد
کامیت
9a32c02aca
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      pkg/go.opentelemetry.io/otel/exporters/otlp/otlptrace/apm_exporter.go

+ 4 - 0
pkg/go.opentelemetry.io/otel/exporters/otlp/otlptrace/apm_exporter.go

@@ -97,6 +97,8 @@ type RootDataT struct {
 	ParentSys       string `json:"parent_sys"`        // from cwother header: SysTag
 	AppNameFrom     string `json:"app_name_from"`     // from cwother header: app_name
 	ServiceTypeFrom string `json:"service_type_from"` // from cwother header: appServiceType
+	//i6000需要,增加process_jvm_id
+	ProcessJvmId int64 `json:"process_jvm_id"`
 }
 
 // ParamStruct 定义目标结构
@@ -477,6 +479,7 @@ func initRootDataFromEvent() RootDataT {
 		Sys:             sysTag,
 		SystemUUID:      systemUUID,
 		UserAgent:       "",
+		ProcessJvmId:    -1,
 	}
 	return data
 }
@@ -523,6 +526,7 @@ func initRootDataJava() RootDataT {
 		Uri:            "",
 		UserDir:        "",
 		VipIds:         []interface{}{},
+		ProcessJvmId:   -1,
 	}
 	return data
 }