WithContextConfigFromEnv returns an agent option that populates ContextConfig from the current environment.
()
| 52 | // WithContextConfigFromEnv returns an agent option that |
| 53 | // populates ContextConfig from the current environment. |
| 54 | func WithContextConfigFromEnv() func(*agent.Options) { |
| 55 | return func(o *agent.Options) { |
| 56 | o.ContextConfig = agentcontextconfig.ReadEnvConfig() |
| 57 | } |
| 58 | } |