Class: Datadog::Tracing::Contrib::Propagation::SqlComment::Mode
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Tracing::Contrib::Propagation::SqlComment::Mode
- Defined in:
- lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb
Instance Attribute Summary collapse
-
#append ⇒ Object
Returns the value of attribute append.
-
#inject_sql_basehash ⇒ Object
Returns the value of attribute inject_sql_basehash.
-
#mode ⇒ Object
Returns the value of attribute mode.
Instance Method Summary collapse
- #append? ⇒ Boolean
- #enabled? ⇒ Boolean
- #full? ⇒ Boolean
- #inject_sql_basehash? ⇒ Boolean
- #service? ⇒ Boolean
Instance Attribute Details
#append ⇒ Object
Returns the value of attribute append
11 12 13 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 11 def append @append end |
#inject_sql_basehash ⇒ Object
Returns the value of attribute inject_sql_basehash
11 12 13 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 11 def inject_sql_basehash @inject_sql_basehash end |
#mode ⇒ Object
Returns the value of attribute mode
11 12 13 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 11 def mode @mode end |
Instance Method Details
#append? ⇒ Boolean
24 25 26 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 24 def append? append end |
#enabled? ⇒ Boolean
12 13 14 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 12 def enabled? service? || full? end |
#full? ⇒ Boolean
20 21 22 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 20 def full? mode == Ext::FULL end |
#inject_sql_basehash? ⇒ Boolean
28 29 30 |
# File 'lib/datadog/tracing/contrib/propagation/sql_comment/mode.rb', line 28 def inject_sql_basehash? inject_sql_basehash end |