-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: Add LogRecordProcessor tests * test: Update observed_timestamp LogRecord test Tests for timestamp were updated to use Time objects, but observed_timestamp was not. Now, they both evaluate Time. They are turned into floats when converted to LogRecordData. * test: Exclude test directory from SimpleCov * style: Misc docs/spacing updates * test: Skip flaky JRuby test with link to fix issue --------- Co-authored-by: Matthew Wear <matthew.wear@gmail.com>
- Loading branch information
1 parent
0f5cbfc
commit 3ff81bd
Showing
9 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
logs_sdk/test/opentelemetry/sdk/logs/log_record_processor_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright The OpenTelemetry Authors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
require 'test_helper' | ||
|
||
describe OpenTelemetry::SDK::Logs::LogRecordProcessor do | ||
let(:processor) { OpenTelemetry::SDK::Logs::LogRecordProcessor.new } | ||
let(:log_record) { nil } | ||
let(:context) { nil } | ||
|
||
it 'implements #on_emit' do | ||
processor.on_emit(log_record, context) | ||
end | ||
|
||
it 'implements #force_flush' do | ||
processor.force_flush | ||
end | ||
|
||
it 'returns a success code when #force_flush is called' do | ||
assert(OpenTelemetry::SDK::Logs::Export::SUCCESS, processor.force_flush) | ||
end | ||
|
||
it 'implements #shutdown' do | ||
processor.shutdown | ||
end | ||
|
||
it 'returns a success code when #shutdown is called' do | ||
assert(OpenTelemetry::SDK::Logs::Export::SUCCESS, processor.shutdown) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters