aws / aws/aws-xray-sdk-ruby

invalid configuration option `:xray_recorder' on Ivschat

Open
#104 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
60
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Hello team — I’m seeing an `ArgumentError` when initializing `Aws::Ivschat::Client` with the `:xray_recorder` option.

### Summary
`Aws::Ivschat::Client.new` raises `ArgumentError (invalid configuration option :xray_recorder)` when the X-Ray Ruby SDK is configured.

### Steps to Reproduce
```ruby
require 'aws-xray-sdk'
require 'aws-sdk-ivschat'

# NG if passing patch argument
XRay.recorder.configure(name: 'demo', patch: %i[aws_sdk])
Aws::Ivschat::Client.new

# OK if not passing patch argument
XRay.recorder.configure(name: 'demo')
Aws::Ivschat::Client.new

```

### Error
```
aws-sdk-core-3.224.1/lib/seahorse/client/configuration.rb:168:in 'block in Seahorse::Client::Configuration#apply_options': invalid configuration option `:xray_recorder' (ArgumentError)
```

### Possible Cause
`IVSChat` might be missing from the allow-list in
aws/aws-xray-sdk-ruby ➜ [aws_services_allowlist.rb](https://github.com/aws/aws-xray-sdk-ruby/blob/master/lib/aws-xray-sdk/facets/resources/aws_services_allowlist.rb).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.