Skip to content

Commit 40c3d2b

Browse files
authored
Update endpoint URL to the log server (#36)
1 parent 36fe738 commit 40c3d2b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/optimizely/event_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def add_common_params(user_id, attributes)
6969
end
7070

7171
class EventBuilderV2 < BaseEventBuilder
72-
CONVERSION_EVENT_ENDPOINT = 'https://p13nlog.dz.optimizely.com/log/event'
73-
IMPRESSION_EVENT_ENDPOINT = 'https://p13nlog.dz.optimizely.com/log/decision'
72+
CONVERSION_EVENT_ENDPOINT = 'https://logx.optimizely.com/log/event'
73+
IMPRESSION_EVENT_ENDPOINT = 'https://logx.optimizely.com/log/decision'
7474
POST_HEADERS = { 'Content-Type' => 'application/json' }
7575

7676
def create_impression_event(experiment_key, variation_id, user_id, attributes)

spec/event_builder_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
time_now = Time.now
3636
allow(Time).to receive(:now).and_return(time_now)
3737

38-
@expected_impression_url = 'https://p13nlog.dz.optimizely.com/log/decision'
38+
@expected_impression_url = 'https://logx.optimizely.com/log/decision'
3939
@expected_impression_params = {
4040
'visitorId' => 'test_user',
4141
'timestamp' => (time_now.to_f * 1000).to_i,
@@ -53,7 +53,7 @@
5353
'userFeatures' => [],
5454
}
5555

56-
@expected_conversion_url = 'https://p13nlog.dz.optimizely.com/log/event'
56+
@expected_conversion_url = 'https://logx.optimizely.com/log/event'
5757
@expected_conversion_params = {
5858
'visitorId' => 'test_user',
5959
'timestamp' => (time_now.to_f * 1000).to_i,

spec/project_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ class InvalidErrorHandler; end
412412
let(:error_handler) { Optimizely::RaiseErrorHandler.new }
413413
let(:spy_logger) { spy('logger') }
414414
let(:version) { Optimizely::VERSION }
415-
let(:impression_log_url) { 'https://p13nlog.dz.optimizely.com/log/decision' }
416-
let(:conversion_log_url) { 'https://p13nlog.dz.optimizely.com/log/event' }
415+
let(:impression_log_url) { 'https://logx.optimizely.com/log/decision' }
416+
let(:conversion_log_url) { 'https://logx.optimizely.com/log/event' }
417417
let(:project_instance) { Optimizely::Project.new(config_body_JSON, nil, spy_logger, error_handler) }
418418
let(:time_now) { Time.now }
419419
let(:post_headers) { { 'Content-Type' => 'application/json' } }

0 commit comments

Comments
 (0)