diff --git a/.chloggen/codeboten_mark-stable-otel.yaml b/.chloggen/codeboten_mark-stable-otel.yaml new file mode 100755 index 00000000000..b7741051f32 --- /dev/null +++ b/.chloggen/codeboten_mark-stable-otel.yaml @@ -0,0 +1,25 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) +component: service + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: mark `telemetry.useOtelForInternalMetrics` as stable + +# One or more tracking issues or pull requests related to the change +issues: [816] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [] \ No newline at end of file diff --git a/exporter/exporterhelper/retry_sender_test.go b/exporter/exporterhelper/retry_sender_test.go index 2b588ab7026..6a14eb29f07 100644 --- a/exporter/exporterhelper/retry_sender_test.go +++ b/exporter/exporterhelper/retry_sender_test.go @@ -357,66 +357,3 @@ func (ocs *observabilityConsumerSender) checkSendItemsCount(t *testing.T, want i func (ocs *observabilityConsumerSender) checkDroppedItemsCount(t *testing.T, want int) { assert.EqualValues(t, want, ocs.droppedItemsCount.Load()) } - -func TestNewDefaultRetrySettings(t *testing.T) { - cfg := NewDefaultRetrySettings() - assert.NoError(t, cfg.Validate()) - assert.Equal(t, - RetrySettings{ - Enabled: true, - InitialInterval: 5 * time.Second, - RandomizationFactor: 0.5, - Multiplier: 1.5, - MaxInterval: 30 * time.Second, - MaxElapsedTime: 5 * time.Minute, - }, cfg) -} - -func TestInvalidInitialInterval(t *testing.T) { - cfg := NewDefaultRetrySettings() - assert.NoError(t, cfg.Validate()) - cfg.InitialInterval = -1 - assert.Error(t, cfg.Validate()) -} - -func TestInvalidRandomizationFactor(t *testing.T) { - cfg := NewDefaultRetrySettings() - assert.NoError(t, cfg.Validate()) - cfg.RandomizationFactor = -1 - assert.Error(t, cfg.Validate()) - cfg.RandomizationFactor = 2 - assert.Error(t, cfg.Validate()) -} - -func TestInvalidMultiplier(t *testing.T) { - cfg := NewDefaultRetrySettings() - assert.NoError(t, cfg.Validate()) - cfg.Multiplier = 0 - assert.Error(t, cfg.Validate()) -} - -func TestInvalidMaxInterval(t *testing.T) { - cfg := NewDefaultRetrySettings() - assert.NoError(t, cfg.Validate()) - cfg.MaxInterval = -1 - assert.Error(t, cfg.Validate()) -} - -func TestInvalidMaxElapsedTime(t *testing.T) { - cfg := NewDefaultRetrySettings() - assert.NoError(t, cfg.Validate()) - cfg.MaxElapsedTime = -1 - assert.Error(t, cfg.Validate()) -} - -func TestDisabledWithInvalidValues(t *testing.T) { - cfg := RetrySettings{ - Enabled: false, - InitialInterval: -1, - RandomizationFactor: -1, - Multiplier: 0, - MaxInterval: -1, - MaxElapsedTime: -1, - } - assert.NoError(t, cfg.Validate()) -}