@@ -22,6 +22,7 @@ import (
2222 "go.opencensus.io/resource/resourcekeys"
2323
2424 "go.opentelemetry.io/collector/consumer/pdata"
25+ "go.opentelemetry.io/collector/internal/occonventions"
2526 "go.opentelemetry.io/collector/translator/conventions"
2627)
2728
@@ -97,7 +98,7 @@ func ocNodeResourceToInternal(ocNode *occommon.Node, ocResource *ocresource.Reso
9798 }
9899 if ocNode .Identifier != nil {
99100 if ocNode .Identifier .StartTimestamp != nil {
100- attrs .UpsertString (conventions . OCAttributeProcessStartTime , ocNode .Identifier .StartTimestamp .AsTime ().Format (time .RFC3339Nano ))
101+ attrs .UpsertString (occonventions . AttributeProcessStartTime , ocNode .Identifier .StartTimestamp .AsTime ().Format (time .RFC3339Nano ))
101102 }
102103 if ocNode .Identifier .HostName != "" {
103104 attrs .UpsertString (conventions .AttributeHostName , ocNode .Identifier .HostName )
@@ -111,7 +112,7 @@ func ocNodeResourceToInternal(ocNode *occommon.Node, ocResource *ocresource.Reso
111112 attrs .UpsertString (conventions .AttributeTelemetrySDKVersion , ocNode .LibraryInfo .CoreLibraryVersion )
112113 }
113114 if ocNode .LibraryInfo .ExporterVersion != "" {
114- attrs .UpsertString (conventions . OCAttributeExporterVersion , ocNode .LibraryInfo .ExporterVersion )
115+ attrs .UpsertString (occonventions . AttributeExporterVersion , ocNode .LibraryInfo .ExporterVersion )
115116 }
116117 if ocNode .LibraryInfo .Language != occommon .LibraryInfo_LANGUAGE_UNSPECIFIED {
117118 if str , ok := ocLangCodeToLangMap [ocNode .LibraryInfo .Language ]; ok {
@@ -133,7 +134,7 @@ func ocNodeResourceToInternal(ocNode *occommon.Node, ocResource *ocresource.Reso
133134 }
134135 // Add special fields.
135136 if ocResource .Type != "" {
136- attrs .UpsertString (conventions . OCAttributeResourceType , ocResource .Type )
137+ attrs .UpsertString (occonventions . AttributeResourceType , ocResource .Type )
137138 }
138139 }
139140}
0 commit comments