Helper function for adding network events and content length attributes.
Optional
See https://github.com/open-telemetry/opentelemetry-js/issues/3174
Helper function for adding network events and content length attributes.