Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sinatra] change the name with service_name instead of default_service #260

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

palazzem
Copy link
Contributor

Overview

We're introducing a breaking change, and so we should change the option value too. In that we we're consistent with the future configuration common to all integrations.

To change the service name we should use service_name option instead of the old default_service.

@palazzem palazzem added the integrations Involves tracing integrations label Nov 30, 2017
@palazzem palazzem added this to the 0.10.0 milestone Nov 30, 2017
@palazzem palazzem requested review from p-lambert and ufoot November 30, 2017 09:46
Copy link
Contributor

@ufoot ufoot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTM

@@ -45,6 +46,22 @@ def setup
super
end

def test_service_name
previous_name = Datadog.configuration[:sinatra][:service_name]
Datadog.configuration.use(:sinatra, service_name: 'my-sinatra-app')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@palazzem palazzem merged commit 043a193 into master Nov 30, 2017
@palazzem palazzem deleted the palazzem/sinatra-service-name branch November 30, 2017 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants