@@ -222,7 +222,7 @@ func TestNewSDK(t *testing.T) {
222222
223223var v10OpenTelemetryConfig = OpenTelemetryConfiguration {
224224 Disabled : ptr (false ),
225- FileFormat : "1.0-rc.1 " ,
225+ FileFormat : "1.0-rc.2 " ,
226226 AttributeLimits : & AttributeLimits {
227227 AttributeCountLimit : ptr (128 ),
228228 AttributeValueLengthLimit : ptr (4096 ),
@@ -426,8 +426,9 @@ var v10OpenTelemetryConfig = OpenTelemetryConfiguration{
426426 },
427427 Exporter : PullMetricExporter {
428428 PrometheusDevelopment : & ExperimentalPrometheusMetricExporter {
429- Host : ptr ("localhost" ),
430- Port : ptr (9464 ),
429+ Host : ptr ("localhost" ),
430+ Port : ptr (9464 ),
431+ TranslationStrategy : ptr (ExperimentalPrometheusMetricExporterTranslationStrategyUnderscoreEscapingWithSuffixes ),
431432 WithResourceConstantLabels : & IncludeExclude {
432433 Excluded : []string {"service.attr1" },
433434 Included : []string {"service*" },
@@ -610,8 +611,10 @@ var v10OpenTelemetryConfig = OpenTelemetryConfiguration{
610611 },
611612 Tracers : []ExperimentalTracerMatcherAndConfig {
612613 {
613- Config : ptr (ExperimentalTracerConfig {}),
614- Name : ptr ("io.opentelemetry.contrib.*" ),
614+ Config : ptr (ExperimentalTracerConfig {
615+ Disabled : ptr (false ),
616+ }),
617+ Name : ptr ("io.opentelemetry.contrib.*" ),
615618 },
616619 },
617620 },
@@ -809,14 +812,18 @@ func TestParseYAML(t *testing.T) {
809812 line 1: cannot unmarshal !!str ` + "`notabool`" + ` into bool` ),
810813 },
811814 {
812- name : "invalid nil name" ,
813- input : "v1.0.0_invalid_nil_name.yaml" ,
814- wantErr : errors .New (`cannot unmarshal field name in NameStringValuePair required` ),
815+ name : "invalid nil name" ,
816+ input : "v1.0.0_invalid_nil_name.yaml" ,
817+ wantErr : errors .New (`unmarshal error in *otelconf.BatchSpanProcessor
818+ unmarshal error in *otelconf.SpanExporter
819+ cannot unmarshal field name in NameStringValuePair required` ),
815820 },
816821 {
817- name : "invalid nil value" ,
818- input : "v1.0.0_invalid_nil_value.yaml" ,
819- wantErr : errors .New (`cannot unmarshal field value in NameStringValuePair required` ),
822+ name : "invalid nil value" ,
823+ input : "v1.0.0_invalid_nil_value.yaml" ,
824+ wantErr : errors .New (`unmarshal error in *otelconf.BatchLogRecordProcessor
825+ unmarshal error in *otelconf.LogRecordExporter
826+ cannot unmarshal field value in NameStringValuePair required` ),
820827 },
821828 {
822829 name : "valid v0.2 config" ,
@@ -845,7 +852,7 @@ func TestParseYAML(t *testing.T) {
845852
846853 for _ , tt := range tests {
847854 t .Run (tt .name , func (t * testing.T ) {
848- b , err := os .ReadFile (filepath .Join (".." , " testdata" , tt .input ))
855+ b , err := os .ReadFile (filepath .Join ("testdata" , tt .input ))
849856 require .NoError (t , err )
850857
851858 got , err := ParseYAML (b )
@@ -990,7 +997,7 @@ func TestParseYAMLWithEnvironmentVariables(t *testing.T) {
990997 t .Setenv ("VALUE_WITH_ESCAPE" , "value$$" ) // A valid replacement text, used verbatim, not replaced with "Never use this value"
991998 for _ , tt := range tests {
992999 t .Run (tt .name , func (t * testing.T ) {
993- b , err := os .ReadFile (filepath .Join (".." , " testdata" , tt .input ))
1000+ b , err := os .ReadFile (filepath .Join ("testdata" , tt .input ))
9941001 require .NoError (t , err )
9951002
9961003 got , err := ParseYAML (b )
0 commit comments