Skip to content

Commit

Permalink
re-enable tracing for graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 26, 2020
1 parent ecfaa2a commit c5c799e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/graphql/lupo_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

class LupoSchema < GraphQL::Schema
include ApolloFederation::Schema


use GraphQL::Tracing::DataDogTracing, service: 'graphql'
use ApolloFederation::Tracing

default_max_page_size 1000
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Application < Rails::Application
c.use :rails, service_name: "client-api"
c.use :elasticsearch
c.use :active_record, analytics_enabled: false
c.use :graphql, schemas: [LupoSchema]
# c.use :graphql, schemas: [LupoSchema]
c.use :aws
c.analytics_enabled = true
end
Expand Down
2 changes: 1 addition & 1 deletion spec/graphql/types/repository_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

before do
Client.import
sleep 1
sleep 2
end

let(:query) do
Expand Down
4 changes: 0 additions & 4 deletions spec/requests/dois_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2890,16 +2890,12 @@
}
end


it 'add metadata' do
puts "####FIRST ROUND"
put "/dois/10.14454/10703", update_attributes, headers

puts json
expect(json.dig('data', 'attributes', 'doi')).to eq("10.14454/10703")
expect(json.dig('data', 'attributes', 'schemaVersion')).to eq("http://datacite.org/schema/kernel-3")

puts "####SECOND ROUND"
put '/dois/10.14454/10703', valid_attributes, headers

expect(json.dig('data', 'attributes', 'doi')).to eq("10.14454/10703")
Expand Down

0 comments on commit c5c799e

Please sign in to comment.