Skip to content

Commit 8491b63

Browse files
authored
Add clarification to automatic instrumentation docs (DataDog#2473)
1 parent 0b2a3f4 commit 8491b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/development/AutomaticInstrumentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ OnMethodBegin signatures with 1 or more parameters with 1 or more generics:
8787
CallTargetState OnMethodBegin<TTarget, TArg1, TArg2, ...>(ref TArg1 arg1, ref TArg2, ...)
8888
```
8989
The last four signatures are for static classes.
90-
> For performance reasons, it is recommended to use the `ref` or `in` (if there's no need to edit the argument) keyword in front of the arguments after the instance one.
90+
> For performance reasons, it is recommended to use the `ref` or `in` (if there's no need to edit the argument) keyword in front of the arguments after the instance one. Note that you cannot use `in` or `ref` if you are using duck-typing constraints on the parameters ([which you should be, where possible](../DuckTyping.md#best-practices)).
9191
9292

9393
##### `OnMethodEnd`

0 commit comments

Comments
 (0)